結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
ebicochineal
|
| 提出日時 | 2016-03-12 02:02:38 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 194 bytes |
| 記録 | |
| コンパイル時間 | 321 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-12 05:24:58 |
| 合計ジャッジ時間 | 4,572 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 WA * 2 |
ソースコード
l = int(input())
N = [input()for x in '_'*l]
d = {}
for i in N:
if i in d:
d[i]+=1
else:
d[i]=1
m = 0
for i in d.values():
if i>m:m=i
print('NO'if m>l//2+1 else'YES')
ebicochineal