結果
| 問題 | 
                            No.349 干支の置き物
                             | 
                    
| コンテスト | |
| ユーザー | 
                             H20
                         | 
                    
| 提出日時 | 2021-01-22 13:31:49 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 216 bytes | 
| コンパイル時間 | 541 ms | 
| コンパイル使用メモリ | 82,560 KB | 
| 実行使用メモリ | 53,632 KB | 
| 最終ジャッジ日時 | 2024-12-26 11:55:44 | 
| 合計ジャッジ時間 | 3,794 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 27 WA * 2 | 
ソースコード
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+1:
        print('NO')
        exit()
print('YES')
            
            
            
        
            
H20