結果
問題 |
No.349 干支の置き物
|
ユーザー |
![]() |
提出日時 | 2017-03-01 16:24:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 427 bytes |
コンパイル時間 | 339 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-12 20:50:35 |
合計ジャッジ時間 | 2,323 ms |
ジャッジサーバーID (参考情報) |
judge3 / 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: YorN = 0 if YorN: print("YES") else: print("NO")