結果

問題 No.349 干支の置き物
ユーザー r_yo6021
提出日時 2016-09-12 21:56:56
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 382 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-17 04:06:05
合計ジャッジ時間 2,157 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

Eto = ["ne", "ushi", "tora", "u", "tatsu", "mi",
       "uma", "hitsuji", "saru", "tori", "inu", "i"]
Count = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Dic = dict(zip(Eto, Count))

N = int(input())

for i in range(N):
    Dic[input()] += 1

can_Line_up = True
for Name in Eto:
    if Dic[Name] * 2 > N:
        can_Line_up = False

if can_Line_up:
    print('YES')
else:
    print('NO')
0