結果

問題 No.349 干支の置き物
ユーザー 💕💖💞
提出日時 2016-09-10 13:38:00
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 310 bytes
コンパイル時間 462 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-16 19:54:41
合計ジャッジ時間 1,979 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
import sys
count = collections.Counter
tgts = []
for _ in range(int(raw_input())):
  i = raw_input()
  tgts.append(swap[i]) 
#print count(tgts)
noise = sorted(count(tgts).values()).pop()
ents =  sum(count(tgts).values()) - noise
if noise >= ents + 2: 
  print "NO"
  sys.exit(0)
print "YES"
0