結果
| 問題 |
No.706 多眼生物の調査
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-07-02 19:08:42 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 232 bytes |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-01 01:34:12 |
| 合計ジャッジ時間 | 908 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | WA * 5 |
ソースコード
n = int(input())
dic = {}
for i in range(n):
s = input().strip()
if not s.count in dic.keys():
dic[s.count('^')] = 1
else:
dic[s.count('^')] += 1
keys = [k for k, v in dic.items() if v == max(dic.values())]
print(max(keys))