結果

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

ソースコード

diff #

from collections import Counter
N = int(raw_input())
n = max(Counter(raw_input() for i in xrange(N)).values())
print "YES" if n*2 <= N + 1 else "NO"
0