結果

問題 No.706 多眼生物の調査
ユーザー liny_tailliny_tail
提出日時 2020-09-21 18:36:44
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 591 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 7,908 KB
最終ジャッジ日時 2023-09-06 17:26:29
合計ジャッジ時間 1,516 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

N = int(input().strip())
S = [input().strip().count('^') for _ in range(N)]

lst = [0] * 1001
for i in S:
  lst[i] += 1

ans = 0
cnt = 0
for n, i in enumerate(lst):
  if cnt <= i:
    cnt = i
    ans = n

print(ans)
0