結果

問題 No.706 多眼生物の調査
ユーザー caleicalei
提出日時 2020-01-24 16:02:03
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 10,736 KB
実行使用メモリ 8,588 KB
最終ジャッジ日時 2023-10-12 04:09:47
合計ジャッジ時間 983 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,452 KB
testcase_01 AC 18 ms
8,540 KB
testcase_02 AC 18 ms
8,456 KB
testcase_03 AC 19 ms
8,572 KB
testcase_04 AC 18 ms
8,396 KB
testcase_05 AC 19 ms
8,540 KB
testcase_06 AC 21 ms
8,588 KB
testcase_07 AC 17 ms
8,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# yukicoder No.706 多眼生物の調査 2020/01/24

from collections import Counter

n=int(input())
s=Counter([input().count('^') for _ in range(n)])
s=sorted(list(s.items()),key=lambda x: (x[1],x[0]),reverse=True)
print(s[0][0])
0