結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-10 20:16:42 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
不安定
|
| 実行時間 | 133 ms / 2,000 ms |
| + 853µs | |
| コード長 | 274 bytes |
| 記録 | |
| コンパイル時間 | 111 ms |
| コンパイル使用メモリ | 62,572 KB |
| 実行使用メモリ | 83,308 KB |
| 最終ジャッジ日時 | 2026-10-15 12:46:30 |
| 合計ジャッジ時間 | 7,101 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
# -*- 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"