結果
| 問題 |
No.349 干支の置き物
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-10 20:16:42 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 2,000 ms |
| コード長 | 274 bytes |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 6,784 KB |
| 実行使用メモリ | 8,192 KB |
| 最終ジャッジ日時 | 2024-11-22 01:01:20 |
| 合計ジャッジ時間 | 1,892 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
# -*- 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 + 1)/2:
print "YES"
else:
print "NO"