为什么60分3个AC,2个WA

P1422 小玉家的电费

s大于400也肯定大于150啊
by 翰森锐 @ 2020-01-19 18:26:06


谢谢
by Ipfirn @ 2020-01-20 12:25:40


```python s = int(input()) if s>400: print('%.1f'%((s-400)*0.5663+250*0.4663+150*0.4463)) elif s>150: print('%.1f'%((s-150)*0.4663+150*0.4463)) else: print('%.1f'%(s*0.4463)) ```
by Ipfirn @ 2020-01-20 12:26:08


|