結果
| 問題 |
No.349 干支の置き物
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-06-11 20:44:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 675 bytes |
| コンパイル時間 | 211 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-24 16:34:00 |
| 合計ジャッジ時間 | 1,975 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 WA * 2 |
ソースコード
#eto349
N=int(input())
A=[input() for i in range(N)]
Et=[0]*12
for i in range(N):
if A[i]=="ne":
Et[0]+=1
elif A[i]=="ushi":
Et[1]+=1
elif A[i]=="tora":
Et[2]+=1
elif A[i]=="u":
Et[3]+=1
elif A[i]=="tatsu":
Et[4]+=1
elif A[i]=="mi":
Et[5]+=1
elif A[i]=="uma":
Et[6]+=1
elif A[i]=="hitsuji":
Et[7]+=1
elif A[i]=="saru":
Et[8]+=1
elif A[i]=="tori":
Et[9]+=1
elif A[i]=="inu":
Et[10]+=1
elif A[i]=="i":
Et[11]+=1
nd=0
i=0
while nd==0 and i<12:
if Et[i]>N/2+1:
nd=1
i+=1
if nd==1:
print("NO")
else:
print("YES")
rocoder