#46069: py四捨五入


9036713565 (peeguu)

學校 : 不指定學校
編號 : 306191
來源 : [118.168.240.28]
最後登入時間 :
2025-05-15 02:26:48
p904. 捷運 (MRT) -- TOI練習賽202503新手組第2題 | From: [118.168.240.28] | 發表日期 : 2025-05-17 07:01

round會有問題

if int(str(int(total*10))[-1])>=5:
    total = int(total)+1
else:
    total = int(total)
 
ZeroJudge Forum