Submission #18497


Source Code Expand

Copy
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

 class Solver
{
     public void Solve()
     {
         var N = int.Parse(Console.ReadLine());
         var list = new List<string>();
         for (var i = 0; i < N; i++)
         {


             var cs = Console.ReadLine().ToCharArray();
             Array.Reverse(cs);
             list.Add(new string(cs));
         }
         list.Sort();
         foreach (var s in list)
         {
             var cs = s.ToCharArray();
             Array.Reverse(cs);
             Console.WriteLine(new string(cs));
         }
     }


#if !DEBUG
    static void Main(string[] args)
    {
        new Solver().Solve();
    }
#endif
}

Submission Info

Submission Time
Task B - さかさま辞書
User fujiyama
Language C# (Mono 2.10.8.1)
Score 100
Code Size 762 Byte
Status AC
Exec Time 384 ms
Memory 8432 KB

Judge Result

Set Name all
Score / Max Score 100 / 100
Status
AC × 28
Set Name Test Cases
all 00_sample_01.txt, 00_sample_02.txt, 01_rand_01.txt, 01_rand_02.txt, 01_rand_03.txt, 01_rand_04.txt, 01_rand_05.txt, 01_rand_06.txt, 01_rand_07.txt, 01_rand_08.txt, 01_rand_09.txt, 01_rand_10.txt, 02_long_01.txt, 02_long_02.txt, 02_long_03.txt, 03_short_01.txt, 03_short_02.txt, 03_short_03.txt, 04_max_01.txt, 04_max_02.txt, 04_max_03.txt, 04_max_04.txt, 04_max_05.txt, 05_samestring_01.txt, 05_samestring_02.txt, 05_samestring_03.txt, 05_samestring_04.txt, 05_samestring_05.txt
Case Name Status Exec Time Memory
00_sample_01.txt AC 164 ms 8276 KB
00_sample_02.txt AC 162 ms 8300 KB
01_rand_01.txt AC 156 ms 8384 KB
01_rand_02.txt AC 163 ms 8376 KB
01_rand_03.txt AC 160 ms 8380 KB
01_rand_04.txt AC 159 ms 8376 KB
01_rand_05.txt AC 160 ms 8280 KB
01_rand_06.txt AC 161 ms 8376 KB
01_rand_07.txt AC 188 ms 8256 KB
01_rand_08.txt AC 164 ms 8280 KB
01_rand_09.txt AC 167 ms 8380 KB
01_rand_10.txt AC 166 ms 8376 KB
02_long_01.txt AC 166 ms 8384 KB
02_long_02.txt AC 170 ms 8376 KB
02_long_03.txt AC 157 ms 8256 KB
03_short_01.txt AC 134 ms 7292 KB
03_short_02.txt AC 384 ms 8352 KB
03_short_03.txt AC 331 ms 7316 KB
04_max_01.txt AC 197 ms 8432 KB
04_max_02.txt AC 165 ms 8380 KB
04_max_03.txt AC 160 ms 8380 KB
04_max_04.txt AC 187 ms 8380 KB
04_max_05.txt AC 374 ms 8368 KB
05_samestring_01.txt AC 375 ms 8380 KB
05_samestring_02.txt AC 162 ms 8376 KB
05_samestring_03.txt AC 169 ms 8280 KB
05_samestring_04.txt AC 165 ms 8408 KB
05_samestring_05.txt AC 205 ms 8380 KB