結果

問題 No.349 干支の置き物
ユーザー roiti46
提出日時 2016-10-10 20:16:01
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 268 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 6,784 KB
実行使用メモリ 8,192 KB
最終ジャッジ日時 2024-11-22 01:01:17
合計ジャッジ時間 2,217 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll

N = int(raw_input())
d = coll.defaultdict(int)
for i in xrange(N):
    d[raw_input()] += 1
if max(d[v] for v in d) <= N/2:
    print "YES"
else:
    print "NO"
0