結果
| 問題 | 
                            No.349 干支の置き物
                             | 
                    
| コンテスト | |
| ユーザー | 
                             syunsuke
                         | 
                    
| 提出日時 | 2019-06-13 23:19:18 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 289 bytes | 
| コンパイル時間 | 357 ms | 
| コンパイル使用メモリ | 12,800 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-10-15 20:03:43 | 
| 合計ジャッジ時間 | 2,218 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 26 WA * 3 | 
ソースコード
N=int(input())
A=[0 for i in range(12)]
E=["ne","ushi","tora","u","tatsu","mi","uma","hitsuji","saru","tori","inu","i"]
for i in range(N):
    a=input()
    for j in range(12):
        if a==E[j]:
            A[j]+=1
M=max(A)
S=sum(A)-M
if M>=(S+1):
    print("NO")
else:
    print("YES")
            
            
            
        
            
syunsuke