結果

問題 No.706 多眼生物の調査
ユーザー ThetaTheta
提出日時 2022-10-18 16:37:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 264 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 10,776 KB
実行使用メモリ 8,940 KB
最終ジャッジ日時 2023-09-11 09:39:53
合計ジャッジ時間 1,086 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,544 KB
testcase_01 AC 19 ms
8,580 KB
testcase_02 AC 19 ms
8,504 KB
testcase_03 AC 19 ms
8,600 KB
testcase_04 AC 20 ms
8,556 KB
testcase_05 AC 21 ms
8,660 KB
testcase_06 WA -
testcase_07 AC 20 ms
8,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict, Counter


def main():
    N = int(input())
    animals = defaultdict(int)
    for _ in range(N):
        animals[input()] += 1
    print(Counter(animals).most_common(1)[0][0].count("^"))


if __name__ == "__main__":
    main()
0