結果

問題 No.706 多眼生物の調査
ユーザー iad_2889iad_2889
提出日時 2019-05-15 07:19:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,736 KB
実行使用メモリ 8,452 KB
最終ジャッジ日時 2023-10-11 14:07:39
合計ジャッジ時間 1,248 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,892 KB
testcase_01 AC 15 ms
7,748 KB
testcase_02 AC 15 ms
7,740 KB
testcase_03 AC 15 ms
7,788 KB
testcase_04 AC 16 ms
7,824 KB
testcase_05 AC 17 ms
8,156 KB
testcase_06 AC 19 ms
8,452 KB
testcase_07 AC 15 ms
7,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
multi_eye = {}
for i in range(N):
    eye = input()
    multi_eye.setdefault(eye,0)
    multi_eye[eye]+=1
max_eye = max(multi_eye.values())
multi_eye = [len(x) - 2 for x,y in multi_eye.items() if y == max_eye]
max_eye = max(multi_eye)
print(max_eye)
0