简答题 偏难
#17356

试题名称 :商店折扣 时间限制 :1.0 s 内存限制 :512.0 MB

试题名称:商店折扣

时间限制:1.0 s

内存限制:512.0 MB

未登录也能判分,登录后才会记录
答案与解析
正确答案:<pre class="brush:python;toolbar:false;">x = int(input()) y = int(input()) n = int(input()) p = int(input()) a = 0 b = p*n/10 if p&gt;=x:     a = p-y else:     a = p if a&lt;b:     print("%.2f"%a) else:     print("%.2f"%b)</pre>
这道题暂未补解析。