結果
| 問題 |
No.706 多眼生物の調査
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 21:17:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 59 ms / 2,000 ms |
| コード長 | 311 bytes |
| コンパイル時間 | 364 ms |
| コンパイル使用メモリ | 82,288 KB |
| 実行使用メモリ | 66,300 KB |
| 最終ジャッジ日時 | 2025-03-20 21:18:59 |
| 合計ジャッジ時間 | 1,429 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
n = int(input())
from collections import defaultdict
counts = defaultdict(int)
for _ in range(n):
s = input().strip()
num = len(s) - 2
counts[num] += 1
max_count = max(counts.values(), default=0)
candidates = [k for k, v in counts.items() if v == max_count]
result = max(candidates)
print(result)
lam6er