結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2024-05-01 12:12:54 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 2,000 ms |
| コード長 | 203 bytes |
| 記録 | |
| コンパイル時間 | 143 ms |
| コンパイル使用メモリ | 85,244 KB |
| 実行使用メモリ | 53,888 KB |
| 最終ジャッジ日時 | 2026-05-15 20:05:15 |
| 合計ジャッジ時間 | 2,436 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
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