第一个结果WA了显示answer too long?

P5705 【深基2.例7】数字反转

羽落溟星_gyj @ 2022-01-12 14:44:07

m=str(float(input('')))

n=[]

for i in range(len(m)):

n.append(m[i])

s=float(n[4])+float(n[2])0.1+float(n[1])0.01+float(n[0])*0.001

print(s)


by LYqwq @ 2022-01-12 14:45:39

望丰展,使MD


|