結果
問題 | No.706 多眼生物の調査 |
ユーザー |
![]() |
提出日時 | 2018-10-04 09:27:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 514 ms / 2,000 ms |
コード長 | 318 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 44,444 KB |
最終ジャッジ日時 | 2024-10-12 11:09:39 |
合計ジャッジ時間 | 5,953 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
#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()