結果
問題 | No.706 多眼生物の調査 |
ユーザー | gma712 |
提出日時 | 2018-10-04 09:27:22 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
AC
|
実行時間 | 140 ms / 2,000 ms |
コード長 | 318 bytes |
コンパイル時間 | 366 ms |
コンパイル使用メモリ | 10,692 KB |
実行使用メモリ | 29,716 KB |
最終ジャッジ日時 | 2023-08-02 15:23:45 |
合計ジャッジ時間 | 2,246 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 133 ms
29,652 KB |
testcase_01 | AC | 138 ms
29,664 KB |
testcase_02 | AC | 132 ms
29,692 KB |
testcase_03 | AC | 134 ms
29,552 KB |
testcase_04 | AC | 136 ms
29,668 KB |
testcase_05 | AC | 140 ms
29,668 KB |
testcase_06 | AC | 135 ms
29,716 KB |
testcase_07 | AC | 133 ms
29,612 KB |
ソースコード
#coding:utf-8 import numpy def count_eyes(e): return e.count('^') def main(): N = int(input().strip()) l = [] for _ in range(N): l.append(count_eyes(input())) num_l = numpy.bincount(l) max_indexes = numpy.where(num_l == num_l.max()) print(max_indexes[0][-1]) if __name__ == '__main__': main()