結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
ohana
|
| 提出日時 | 2023-10-23 15:10:22 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 95,956 KB |
| 実行使用メモリ | 79,424 KB |
| 最終ジャッジ日時 | 2026-09-02 09:42:04 |
| 合計ジャッジ時間 | 4,441 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 4 |
ソースコード
from collections import defaultdict
n = int(input())
mx = 0
dd = defaultdict(int)
for i in range(n):
a = input()
dd[a] += 1
mx = max(mx, dd[a])
print("YNEOS"[mx > (n - mx) * 2 - 1 :: 2])
ohana