結果
| 問題 |
No.349 干支の置き物
|
| コンテスト | |
| ユーザー |
suuuuuuuuuuuuuwaaaaaaaa
|
| 提出日時 | 2017-03-01 16:13:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 442 bytes |
| コンパイル時間 | 226 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-12 20:00:21 |
| 合計ジャッジ時間 | 2,088 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 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):
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
break
if YorN:
print("YES")
else:
print("NO")
suuuuuuuuuuuuuwaaaaaaaa