結果

問題 No.349 干支の置き物
ユーザー fumofumofuni
提出日時 2021-09-13 01:32:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 222 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-24 22:50:54
合計ジャッジ時間 2,370 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
N=int(input())
mp=defaultdict(int)
for i in range(N):
    s=input()
    mp[s]+=1
for k,v in mp.items():
    if v>(N+1)//2:
        print('NO')
        exit()
print('YES')
0