結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-28 12:00:59 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 28 ms / 2,000 ms |
| + 471µs | |
| コード長 | 231 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 81,632 KB |
| 実行使用メモリ | 57,948 KB |
| 最終ジャッジ日時 | 2026-09-21 15:31:26 |
| 合計ジャッジ時間 | 2,906 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
from collections import defaultdict
N = int(input())
X = defaultdict(int)
for i in range(N):
a = input()
X[a] += 1
if max(X.values()) <= (N + 1) // 2:
print('YES')
else:
print('NO')