結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-11 09:20:20 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 37 ms / 2,000 ms |
| + 346µs | |
| コード長 | 204 bytes |
| 記録 | |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 64,856 KB |
| 実行使用メモリ | 53,800 KB |
| 最終ジャッジ日時 | 2026-10-15 13:53:57 |
| 合計ジャッジ時間 | 3,477 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
import collections
N = int(input())
A = [input() for _ in range(N)]
_, cnts = zip(*collections.Counter(A).most_common())
if len(cnts) > 1 and (N >= 2*cnts[0]-1):
print("YES")
else:
print("NO")