結果
| 問題 | No.706 多眼生物の調査 | 
| コンテスト | |
| ユーザー |  ohana | 
| 提出日時 | 2023-10-27 16:16:45 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 61 ms / 2,000 ms | 
| コード長 | 231 bytes | 
| コンパイル時間 | 359 ms | 
| コンパイル使用メモリ | 82,228 KB | 
| 実行使用メモリ | 65,928 KB | 
| 最終ジャッジ日時 | 2024-09-25 13:04:24 | 
| 合計ジャッジ時間 | 1,289 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 | 
ソースコード
from collections import defaultdict
dd = defaultdict(int)
mx, nm = 0, 0
n = int(input())
for i in range(n):
    s = len(input()) - 2
    dd[s] += 1
    if dd[s] > mx or dd[s] == mx and s > nm:
        mx, nm = dd[s], s
print(nm)
            
            
            
        