結果

問題 No.706 多眼生物の調査
ユーザー crizecrize
提出日時 2018-07-10 14:20:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 310 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 10,580 KB
実行使用メモリ 8,564 KB
最終ジャッジ日時 2023-09-28 21:33:33
合計ジャッジ時間 1,068 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
8,436 KB
testcase_01 RE -
testcase_02 AC 20 ms
8,364 KB
testcase_03 AC 20 ms
8,520 KB
testcase_04 AC 20 ms
8,448 KB
testcase_05 AC 21 ms
8,424 KB
testcase_06 AC 23 ms
8,528 KB
testcase_07 AC 19 ms
8,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
a=int(input())
b=[]
for i in range(a):
    c=input()
    b.append(c.count('^'))
d=collections.Counter(b)
i=1
e=d.most_common()[0][1]
answer=d.most_common()[0][0]
while d.most_common()[i][1]==e:
    if d.most_common()[i][0]>answer:
        answer=d.most_common()[i][0]
    i=i+1
print(answer)
0