結果
| 問題 | 
                            No.349 干支の置き物
                             | 
                    
| コンテスト | |
| ユーザー | 
                             motor_radial
                         | 
                    
| 提出日時 | 2019-08-15 05:58:14 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 27 ms / 2,000 ms | 
| コード長 | 241 bytes | 
| コンパイル時間 | 68 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-09-19 14:47:53 | 
| 合計ジャッジ時間 | 1,736 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 29 | 
ソースコード
N=int(input())
Eto=["ne","ushi","tora","u","tatsu","mi","uma","hitsuji","saru","tori","inu","i"]
A=[input() for i in range(N)]
max_cnt=0
for k in Eto:
    cnt=A.count(k)
    max_cnt=max(max_cnt,cnt)
print("NO" if max_cnt>=(N/2+1) else "YES")
            
            
            
        
            
motor_radial