結果

問題 No.349 干支の置き物
ユーザー suuuuuuuuuuuuuwaaaaaaaa
提出日時 2017-03-01 16:11:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 428 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-12 19:43:16
合計ジャッジ時間 1,738 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
eto_name=["ne","ushi","tora","u","tatsu","mi","uma","hitsuji","saru","tori","inu","i"]
eto_count_start=[0,0,0,0,0,0,0,0,0,0,0,0]
eto_count=dict(zip(eto_name,eto_count_start))
for i in range(n):
    dummy_name=input()
    eto_count[dummy_name]+=1
YorN = 1
standpoint = int((n+1)/2)
for name in range(eto_count):
    if eto_count[name]<=standpoint:
        YonN = 0
if YorN:
    print("YES")
else:
    print("NO")
0