結果
| 問題 | No.706 多眼生物の調査 | 
| コンテスト | |
| ユーザー |  lam6er | 
| 提出日時 | 2025-03-20 19:03:11 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 60 ms / 2,000 ms | 
| コード長 | 311 bytes | 
| コンパイル時間 | 171 ms | 
| コンパイル使用メモリ | 82,416 KB | 
| 実行使用メモリ | 67,516 KB | 
| 最終ジャッジ日時 | 2025-03-20 19:03:35 | 
| 合計ジャッジ時間 | 1,074 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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)
            
            
            
        