結果

問題 No.706 多眼生物の調査
ユーザー RK PythonRK Python
提出日時 2020-06-22 15:32:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 8,600 KB
最終ジャッジ日時 2023-09-16 19:14:14
合計ジャッジ時間 954 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,436 KB
testcase_01 AC 19 ms
8,592 KB
testcase_02 AC 16 ms
8,600 KB
testcase_03 AC 17 ms
8,448 KB
testcase_04 AC 18 ms
8,464 KB
testcase_05 AC 19 ms
8,532 KB
testcase_06 AC 19 ms
8,584 KB
testcase_07 AC 18 ms
8,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

N = int(input())
C = {}
for _ in range(N):
    n = len(input()) - 2
    C.setdefault(n, 0)
    C[n] += 1
ans = list(Counter(C).most_common())
ans.sort(key = lambda x: (x[1], x[0]), reverse=True)
print(ans[0][0])
0