結果
| 問題 | No.349 干支の置き物 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-17 09:26:20 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 284 ms |
| コンパイル使用メモリ | 77,216 KB |
| 最終ジャッジ日時 | 2025-12-03 19:51:05 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 WA * 1 |
ソースコード
# coding: utf-8 #yuki_349 import sys n=int(raw_input()) s=[] for i in xrange(n): s.append(raw_input()) if len(s)==2: if s[0]==s[1]: print "NO" sys.exit() sl=[s.count(word) for word in s] if len(sl)/2+1>=max(sl): print "YES" else: print "NO"