結果

問題 No.349 干支の置き物
コンテスト
ユーザー a_ten
提出日時 2016-03-12 00:32:02
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
WA  
実行時間 -
コード長 226 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 65 ms
コンパイル使用メモリ 80,384 KB
実行使用メモリ 80,768 KB
最終ジャッジ日時 2026-07-18 04:02:37
合計ジャッジ時間 3,620 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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