結果
| 問題 | 
                            No.349 干支の置き物
                             | 
                    
| コンテスト | |
| ユーザー | 
                             H20
                         | 
                    
| 提出日時 | 2021-01-22 13:30:09 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 214 bytes | 
| コンパイル時間 | 333 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 53,760 KB | 
| 最終ジャッジ日時 | 2024-12-26 11:51:58 | 
| 合計ジャッジ時間 | 3,630 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 26 WA * 3 | 
ソースコード
import collections
N = int(input())
ANIMALS = []
for i in range(N):
    ANIMALS.append(input())
CA = collections.Counter(ANIMALS)
for v in CA.values():
    if v>N//2:
        print('NO')
        exit()
print('YES')
            
            
            
        
            
H20