結果
問題 | No.706 多眼生物の調査 |
ユーザー | iwkjosec |
提出日時 | 2018-06-29 22:28:46 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 66 ms / 2,000 ms |
コード長 | 450 bytes |
コンパイル時間 | 2,128 ms |
コンパイル使用メモリ | 107,720 KB |
実行使用メモリ | 23,724 KB |
最終ジャッジ日時 | 2023-09-13 15:21:22 |
合計ジャッジ時間 | 3,279 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 61 ms
21,896 KB |
testcase_01 | AC | 61 ms
21,812 KB |
testcase_02 | AC | 62 ms
23,720 KB |
testcase_03 | AC | 61 ms
21,728 KB |
testcase_04 | AC | 62 ms
21,592 KB |
testcase_05 | AC | 65 ms
23,636 KB |
testcase_06 | AC | 66 ms
19,564 KB |
testcase_07 | AC | 62 ms
23,724 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var N = int.Parse(ReadLine()); var a = new int[1100]; for (int i = 0; i < N; i++) { var r = ReadLine(); a[r.Length]++; } var m = a.Max(); WriteLine( a.Select((x,i)=>new{x,i}).Where(b=>b.x==m).OrderBy(c=>c.i).Last().i-2); } }