結果

問題 No.349 干支の置き物
ユーザー ebicochineal
提出日時 2016-03-12 02:02:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 381 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-25 01:49:20
合計ジャッジ時間 2,269 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

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')
0