結果

問題 No.349 干支の置き物
コンテスト
ユーザー 💕💖💞
提出日時 2016-09-10 13:38:00
言語 PyPy2
(7.3.15)
結果
RE  
実行時間 -
コード長 310 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 149 ms
コンパイル使用メモリ 77,364 KB
最終ジャッジ日時 2025-12-03 21:27:58
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 29
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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