結果

問題 No.706 多眼生物の調査
ユーザー ohana
提出日時 2023-10-27 16:08:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 82,192 KB
実行使用メモリ 66,480 KB
最終ジャッジ日時 2024-09-25 13:04:16
合計ジャッジ時間 1,205 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 1 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

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(s)
0