結果

問題 No.3042 本棚
ユーザー bluemeganebluemegane
提出日時 2019-04-02 07:43:23
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 2,029 ms
コンパイル使用メモリ 105,536 KB
実行使用メモリ 23,636 KB
最終ジャッジ日時 2023-09-10 10:31:35
合計ジャッジ時間 5,343 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
23,468 KB
testcase_01 AC 79 ms
21,460 KB
testcase_02 AC 79 ms
23,512 KB
testcase_03 AC 78 ms
23,512 KB
testcase_04 AC 78 ms
21,520 KB
testcase_05 AC 78 ms
23,608 KB
testcase_06 AC 78 ms
21,468 KB
testcase_07 AC 77 ms
21,644 KB
testcase_08 AC 78 ms
23,464 KB
testcase_09 AC 78 ms
21,476 KB
testcase_10 AC 78 ms
23,572 KB
testcase_11 AC 77 ms
21,416 KB
testcase_12 AC 77 ms
23,384 KB
testcase_13 AC 78 ms
23,372 KB
testcase_14 AC 78 ms
23,516 KB
testcase_15 AC 77 ms
21,408 KB
testcase_16 AC 79 ms
21,496 KB
testcase_17 AC 77 ms
21,396 KB
testcase_18 AC 79 ms
21,472 KB
testcase_19 AC 77 ms
21,408 KB
testcase_20 AC 78 ms
23,636 KB
testcase_21 AC 78 ms
21,632 KB
testcase_22 AC 78 ms
23,576 KB
testcase_23 AC 77 ms
21,628 KB
testcase_24 AC 78 ms
21,484 KB
testcase_25 AC 78 ms
21,500 KB
testcase_26 AC 77 ms
21,464 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        var n = int.Parse(Console.ReadLine().Trim());
        var a = new string[n];
        for (int i = 0; i < n; i++) a[i] =  Console.ReadLine().Trim();
        Array.Sort(a);
        foreach (var x in a) Console.WriteLine(x);
    }
}

0