結果

問題 No.349 干支の置き物
ユーザー H20
提出日時 2021-01-22 13:34:42
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 618 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 53,632 KB
最終ジャッジ日時 2024-12-26 12:04:15
合計ジャッジ時間 3,775 ms
ジャッジサーバーID
(参考情報)
judge1 / 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 N%2==1 and v>-(-N//2):
        print('NO')
        exit()
print('YES')
0