total = int(input())
if total <= 150:
amount = total0.4463
elif 150 < total <= 400:
amount = 1500.4463+(total-150)0.4663
elif total > 400:
amount = 1500.4463+250*0.4663+(total-400)*0.5663
print(’%.1f’ %amount)
洛谷P1422 小玉家的电费(python)
最新推荐文章于 2022-09-05 23:27:38 发布