結果

問題 No.706 多眼生物の調査
ユーザー HimatsubushinHimatsubushin
提出日時 2022-02-02 09:35:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 7,888 KB
最終ジャッジ日時 2023-09-02 02:41:34
合計ジャッジ時間 932 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,788 KB
testcase_01 AC 13 ms
7,888 KB
testcase_02 AC 15 ms
7,884 KB
testcase_03 AC 16 ms
7,840 KB
testcase_04 AC 20 ms
7,872 KB
testcase_05 AC 38 ms
7,784 KB
testcase_06 AC 72 ms
7,756 KB
testcase_07 AC 15 ms
7,800 KB
権限があれば一括ダウンロードができます

ソースコード

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) + 1):
            count.append(0)
    count[eye] += 1

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