結果

問題 No.706 多眼生物の調査
ユーザー HimatsubushinHimatsubushin
提出日時 2022-02-02 09:00:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 341 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 7,968 KB
最終ジャッジ日時 2023-09-02 02:41:06
合計ジャッジ時間 1,560 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,788 KB
testcase_01 AC 15 ms
7,852 KB
testcase_02 AC 15 ms
7,860 KB
testcase_03 AC 16 ms
7,784 KB
testcase_04 AC 21 ms
7,884 KB
testcase_05 AC 40 ms
7,832 KB
testcase_06 AC 74 ms
7,836 KB
testcase_07 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

count = []
for _ in range(int(input())):
    eye = 0
    for s in input():
        if s == '^':
            eye += 1
    if eye > len(count):
        for _ in range(eye - len(count)):
            count.append(0)
    count[eye - 1] += 1

for i in range(len(count) - 1, 0, -1):
    if max(count) == count[i]:
        print(i + 1)
        break
0