結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
HIROPON87069639
|
| 提出日時 | 2016-04-02 15:45:10 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| + 102µs | |
| コード長 | 291 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 81,172 KB |
| 実行使用メモリ | 81,280 KB |
| 最終ジャッジ日時 | 2026-07-18 04:48:24 |
| 合計ジャッジ時間 | 3,657 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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"
HIROPON87069639