結果
問題 |
No.706 多眼生物の調査
|
ユーザー |
|
提出日時 | 2022-06-25 23:22:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 228 bytes |
コンパイル時間 | 327 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-15 13:33:04 |
合計ジャッジ時間 | 1,333 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
from collections import defaultdict n = int(input()) C = defaultdict(int) for _ in range(n): s = input() C[len(s) - 2] += 1 S = [(key, val) for key, val in C.items()] S.sort(key=lambda x: (-x[1], -x[0])) print(S[0][0])