結果

問題 No.349 干支の置き物
ユーザー numberfrom
提出日時 2020-05-21 14:54:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 163 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-10-02 00:01:52
合計ジャッジ時間 2,036 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(set(map(int, input().split())))

for i in range(len(A)):
    if A.count(A[i]) > N // 2:
        print("NO")
        exit()


print("YES")
0