結果

問題 No.706 多眼生物の調査
ユーザー prd_xxxprd_xxx
提出日時 2018-06-29 22:32:19
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 8,628 KB
最終ジャッジ日時 2023-09-13 15:22:28
合計ジャッジ時間 797 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,768 KB
testcase_01 AC 17 ms
7,868 KB
testcase_02 AC 16 ms
7,792 KB
testcase_03 AC 16 ms
7,880 KB
testcase_04 AC 16 ms
7,796 KB
testcase_05 AC 17 ms
8,400 KB
testcase_06 AC 19 ms
8,628 KB
testcase_07 AC 16 ms
7,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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