結果

問題 No.349 干支の置き物
ユーザー H20
提出日時 2021-01-22 13:31:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 541 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 53,632 KB
最終ジャッジ日時 2024-12-26 11:55:44
合計ジャッジ時間 3,794 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
N = int(input())
ANIMALS = []
for i in range(N):
    ANIMALS.append(input())
CA = collections.Counter(ANIMALS)
for v in CA.values():
    if v>N//2+1:
        print('NO')
        exit()
print('YES')
0