結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2024-05-01 12:12:54 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 38 ms / 2,000 ms |
| + 618µs | |
| コード長 | 203 bytes |
| 記録 | |
| コンパイル時間 | 94 ms |
| コンパイル使用メモリ | 64,900 KB |
| 実行使用メモリ | 53,768 KB |
| 最終ジャッジ日時 | 2026-10-16 00:47:03 |
| 合計ジャッジ時間 | 3,572 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
from collections import *
N = int(input())
D = defaultdict(int)
ans = 0
for _ in range(N):
s = input()
D[s] += 1
ans = max(ans, D[s])
print("YES") if ans <= (N + 1) // 2 else print("NO")
rlangevin