結果
問題 | No.706 多眼生物の調査 |
ユーザー | hedwig100 |
提出日時 | 2020-05-03 16:05:37 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
AC
|
実行時間 | 19 ms / 2,000 ms |
コード長 | 408 bytes |
コンパイル時間 | 222 ms |
コンパイル使用メモリ | 10,556 KB |
実行使用メモリ | 7,876 KB |
最終ジャッジ日時 | 2023-09-03 14:43:13 |
合計ジャッジ時間 | 1,961 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,876 KB |
testcase_01 | AC | 16 ms
7,844 KB |
testcase_02 | AC | 16 ms
7,860 KB |
testcase_03 | AC | 16 ms
7,808 KB |
testcase_04 | AC | 16 ms
7,860 KB |
testcase_05 | AC | 17 ms
7,824 KB |
testcase_06 | AC | 19 ms
7,804 KB |
testcase_07 | AC | 16 ms
7,848 KB |
ソースコード
MOD = 10 ** 9 + 7 INF = 10 ** 11 import sys sys.setrecursionlimit(100000000) def main(): N = int(input()) distribution = [0] * 1000 for _ in range(N): s = input() distribution[s.count('^')] += 1 M = 0 index = -1 for i,d in enumerate(distribution): if d >= M: M = d index = i print(index) if __name__ == '__main__': main()