結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
a_ten
|
| 提出日時 | 2016-03-12 00:32:02 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 226 bytes |
| 記録 | |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 76,672 KB |
| 最終ジャッジ日時 | 2025-12-03 19:44:46 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 4 |
ソースコード
#coding:utf-8
N=input()
list=[raw_input() for i in range(N)]
s=0
t={}
for i in list:
if 2 <= list.count(i):
s=max(s,list.count(i))
t[i]=s
if len(set(list))==1:
print 'NO'
elif s <= N+1:
print 'YES'
else:
print 'NO'
a_ten