結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-18 22:20:01 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 38 ms / 2,000 ms |
| + 497µs | |
| コード長 | 241 bytes |
| 記録 | |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 64,504 KB |
| 実行使用メモリ | 53,852 KB |
| 最終ジャッジ日時 | 2026-10-15 13:54:18 |
| 合計ジャッジ時間 | 3,615 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
from collections import defaultdict
n = int(input())
counter = defaultdict(int)
for _ in range(n):
a = input()
counter[a] += 1
for cnt in counter.values():
if cnt > (n + 1) // 2:
print("NO")
exit()
print("YES")