結果
問題 |
No.8042 本棚
|
ユーザー |
![]() |
提出日時 | 2019-04-02 07:43:23 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 29 ms / 2,000 ms |
コード長 | 304 bytes |
コンパイル時間 | 793 ms |
コンパイル使用メモリ | 106,944 KB |
実行使用メモリ | 18,560 KB |
最終ジャッジ日時 | 2024-06-28 01:55:38 |
合計ジャッジ時間 | 2,474 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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); } }