結果
| 問題 |
No.349 干支の置き物
|
| コンテスト | |
| ユーザー |
suuuuuuuuuuuuuwaaaaaaaa
|
| 提出日時 | 2017-03-01 16:40:59 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 2,000 ms |
| コード長 | 399 bytes |
| コンパイル時間 | 192 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-12 20:52:24 |
| 合計ジャッジ時間 | 2,233 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
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):
eto_count[input()]+=1
YorN = True
standpoint = int((n+1)/2)
for name in eto_name:
if eto_count[name]>standpoint:
YorN = False
if YorN:
print("YES")
else:
print("NO")
suuuuuuuuuuuuuwaaaaaaaa