結果

問題 No.349 干支の置き物
ユーザー a_tena_ten
提出日時 2016-03-12 00:32:02
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-25 01:43:23
合計ジャッジ時間 1,441 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#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'
	
0