結果
問題 | No.706 多眼生物の調査 |
ユーザー |
👑 |
提出日時 | 2020-08-24 14:09:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 108 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-06 10:19:51 |
合計ジャッジ時間 | 843 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
from collections import defaultdictn = int(input())dd = defaultdict(int)ans = -1max_cnt = 0for _ in range(n):s = input()cnt = s.count("^")dd[cnt] += 1if (max_cnt < dd[cnt]) or (max_cnt == dd[cnt] and ans < cnt):max_cnt = dd[cnt]ans = cntprint(ans)