Submission #2304226


Source Code Expand

using System;

public class Hello
{
    public static void Main()
    {
        var ret = "";
        var n = int.Parse(Console.ReadLine().Trim());
        for (int i = 0; i < n; i++)
        {
            string[] line = Console.ReadLine().Trim().Split(' ');
            var sL = line[2].Length;
            if (line[0][0] == 'M') ret += line[2][(sL - 1) / 2];
            else if (line[0][0] == 'B') ret += line[2][0];
            else ret += line[2][sL - 1];
        }
        Console.WriteLine(ret);
    }
}

Submission Info

Submission Time
Task A - エンド・オブ・ビギニング
User bluemegane
Language C# (Mono 4.6.2.0)
Score 100
Code Size 529 Byte
Status AC
Exec Time 23 ms
Memory 11220 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 19
Set Name Test Cases
All 00_sample_00.txt, 00_sample_01.txt, 10_min_00.txt, 10_min_01.txt, 10_min_02.txt, 20_max_00.txt, 20_max_01.txt, 20_max_02.txt, 90_random_00.txt, 90_random_01.txt, 90_random_02.txt, 90_random_03.txt, 90_random_04.txt, 90_random_05.txt, 90_random_06.txt, 90_random_07.txt, 90_random_08.txt, 90_random_09.txt, 99_medium_00.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 23 ms 11220 KB
00_sample_01.txt AC 20 ms 9044 KB
10_min_00.txt AC 20 ms 11092 KB
10_min_01.txt AC 20 ms 11092 KB
10_min_02.txt AC 19 ms 9044 KB
20_max_00.txt AC 20 ms 9044 KB
20_max_01.txt AC 20 ms 9044 KB
20_max_02.txt AC 20 ms 11092 KB
90_random_00.txt AC 20 ms 11092 KB
90_random_01.txt AC 20 ms 11092 KB
90_random_02.txt AC 20 ms 11092 KB
90_random_03.txt AC 19 ms 9044 KB
90_random_04.txt AC 20 ms 11092 KB
90_random_05.txt AC 20 ms 11092 KB
90_random_06.txt AC 20 ms 11092 KB
90_random_07.txt AC 20 ms 11092 KB
90_random_08.txt AC 20 ms 9044 KB
90_random_09.txt AC 20 ms 11092 KB
99_medium_00.txt AC 20 ms 11092 KB