結果

問題 No.706 多眼生物の調査
コンテスト
ユーザー prd_xxx
提出日時 2018-06-29 22:32:19
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 92 ms / 2,000 ms
+ 334µs
コード長 214 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 289 ms
コンパイル使用メモリ 21,412 KB
実行使用メモリ 15,860 KB
最終ジャッジ日時 2026-08-02 21:39:40
合計ジャッジ時間 2,084 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = int(input())
src = [input() for i in range(N)]
ctr = [0] * 1005
for s in src:
    ctr[len(s)-2] += 1
ans = None
c = 0
for i in range(1004,-1,-1):
    if ctr[i] > c:
        c = ctr[i]
        ans = i
print(ans)
0