結果
| 問題 | 
                            No.349 干支の置き物
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-03-17 09:26:20 | 
| 言語 | Python2  (2.7.18)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                            (最新)
                                AC
                                 
                             
                            (最初)
                            
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 251 bytes | 
| コンパイル時間 | 55 ms | 
| コンパイル使用メモリ | 6,784 KB | 
| 実行使用メモリ | 6,144 KB | 
| 最終ジャッジ日時 | 2024-11-17 07:27:36 | 
| 合計ジャッジ時間 | 1,260 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / 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"