結果
問題 | No.706 多眼生物の調査 |
ユーザー | ddsyg1 |
提出日時 | 2019-01-22 17:07:34 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 17 ms / 2,000 ms |
コード長 | 200 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 10,716 KB |
実行使用メモリ | 7,972 KB |
最終ジャッジ日時 | 2023-10-13 17:43:10 |
合計ジャッジ時間 | 796 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 13 ms
7,800 KB |
testcase_01 | AC | 14 ms
7,888 KB |
testcase_02 | AC | 13 ms
7,776 KB |
testcase_03 | AC | 14 ms
7,812 KB |
testcase_04 | AC | 16 ms
7,740 KB |
testcase_05 | AC | 15 ms
7,812 KB |
testcase_06 | AC | 17 ms
7,972 KB |
testcase_07 | AC | 13 ms
7,852 KB |
ソースコード
n = int(input()) c = {} for i in range(n): x = input().count('^') if not x in c: c[x] = 1 else: c[x] += 1 num = max(c.values()) l = [] for i in c: if c[i] == num: l.append(i) print(max(l))