結果

問題 No.349 干支の置き物
コンテスト
ユーザー HIROPON87069639
提出日時 2016-04-02 15:45:10
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 291 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 137 ms
コンパイル使用メモリ 77,396 KB
最終ジャッジ日時 2025-12-03 20:04:57
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

# -*- coding: utf-8 -*-
import collections
N = input()
Elist = []
for i in range(N):
    Elist.append(raw_input())
count_dict = collections.Counter(Elist)
maxdec = count_dict.most_common(1)
maxn = maxdec[0][1]
bound = N // 2 + N % 2
if bound < maxn:
    print "NO"
else:
    print "YES"
    
0