結果

問題 No.706 多眼生物の調査
ユーザー kohei2019kohei2019
提出日時 2022-03-19 02:55:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,224 KB
実行使用メモリ 66,568 KB
最終ジャッジ日時 2024-04-14 15:58:20
合計ジャッジ時間 1,349 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
54,160 KB
testcase_01 AC 41 ms
54,176 KB
testcase_02 AC 41 ms
54,092 KB
testcase_03 AC 43 ms
54,748 KB
testcase_04 AC 45 ms
54,980 KB
testcase_05 AC 49 ms
57,372 KB
testcase_06 AC 58 ms
66,568 KB
testcase_07 AC 42 ms
54,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
N = int(input())
cnter = collections.Counter()
for i in range(N):
    cnter[input().count('^')] += 1

keys = list(cnter.keys())
keys.sort()

vm = max(cnter.values())

for k in keys:
    if cnter[k] == vm:
        ans = k
print(ans)
0