Submission #1255817


Source Code Expand

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace codefestival_2016_qualB_B
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int aLen = n[0];
            string a = Console.ReadLine();
            int aTuka = 0;
            int bTuka = 0;
            for(int i = 0; i < aLen; i++)
            {
                if (a[i] == 'c') { Console.WriteLine("No"); }
                else if (a[i] == 'b')
                {
                    if ((bTuka + aTuka) < n[1] + n[2] && bTuka <= n[2])
                    {
                        bTuka++;
                        Console.WriteLine("Yes");
                    }
                    else { Console.WriteLine("No"); }
                }
                else
                {
                    if (bTuka + aTuka < n[1] + n[2])
                    {
                        Console.WriteLine("Yes");
                    }
                    else { Console.WriteLine("No"); }
                }
            }

        }
    }
}

Submission Info

Submission Time
Task B - Qualification simulator
User rayhotate
Language C# (Mono 4.6.2.0)
Score 0
Code Size 1211 Byte
Status WA
Exec Time 243 ms
Memory 15840 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
AC × 1
WA × 2
AC × 4
WA × 9
Set Name Test Cases
Sample s1.txt, s2.txt, s3.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, s1.txt, s2.txt, s3.txt
Case Name Status Exec Time Memory
01.txt WA 231 ms 11744 KB
02.txt WA 243 ms 13792 KB
03.txt AC 238 ms 15840 KB
04.txt AC 236 ms 13792 KB
05.txt WA 210 ms 13684 KB
06.txt WA 239 ms 13792 KB
07.txt AC 242 ms 13920 KB
08.txt WA 231 ms 11744 KB
09.txt WA 234 ms 13920 KB
10.txt WA 232 ms 15840 KB
s1.txt WA 22 ms 9172 KB
s2.txt WA 22 ms 11348 KB
s3.txt AC 22 ms 9172 KB