結果
問題 |
No.706 多眼生物の調査
|
ユーザー |
![]() |
提出日時 | 2025-08-08 11:36:25 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 275 bytes |
コンパイル時間 | 5,394 ms |
コンパイル使用メモリ | 67,944 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-08-08 11:36:32 |
合計ジャッジ時間 | 4,219 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import sequtils, strutils, sugar let n = parseInt stdin.readLine seq1 = newSeq.collect: for _ in 0 ..< n: stdin.readLine.len - 2 var cnt: array[1005, int] for l in seq1: cnt[l].inc var ans = 0 for i, l in cnt: if l >= cnt[ans]: ans = i echo ans