結果
問題 |
No.349 干支の置き物
|
ユーザー |
![]() |
提出日時 | 2016-04-02 15:45:10 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 128 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,784 KB |
最終ジャッジ日時 | 2024-11-17 07:29:58 |
合計ジャッジ時間 | 1,580 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
# -*- 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"