結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-10 20:16:42 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 108 ms / 2,000 ms |
| + 197µs | |
| コード長 | 274 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 81,156 KB |
| 実行使用メモリ | 95,232 KB |
| 最終ジャッジ日時 | 2026-07-18 09:25:29 |
| 合計ジャッジ時間 | 5,620 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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"