結果

問題 No.706 多眼生物の調査
ユーザー khatkhat
提出日時 2018-08-19 13:55:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 307 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 8,648 KB
最終ジャッジ日時 2023-08-10 19:25:43
合計ジャッジ時間 1,078 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,592 KB
testcase_01 AC 17 ms
8,464 KB
testcase_02 AC 17 ms
8,476 KB
testcase_03 AC 17 ms
8,488 KB
testcase_04 AC 17 ms
8,608 KB
testcase_05 AC 18 ms
8,500 KB
testcase_06 AC 18 ms
8,648 KB
testcase_07 AC 15 ms
8,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
from operator import itemgetter

n = int(input())
a = []
b = []
for i in range(n):
	s = str(input())
	eye = s[1:-1]
	a.append(len(eye))

c = dict(collections.Counter(a).most_common())
t = max(c.values())
for key, value in c.items():
    if value == t:
        b.append(key);
print(max(b))
0