if __name__ == '__main__':
inputs = input()
index = inputs.find("E")
exp = int(inputs[index + 2:])
r = ""
if inputs[index + 1] == "-":
r += "0."
for i in range(exp - 1):
r += "0"
r += inputs[1] + inputs[3:index]
else:
if index - 3 > exp:
r += inputs[1] + inputs[3:exp + 3] + "." + inputs[exp + 3:index]
else:
r += inputs[1] + inputs[3:index]
for i in range(exp - index + 3):
r += "0"
if inputs[0] == "-":
print(inputs[0] + r)
else:
print(r)
PAT (Basic Level) Practice (中文)1024 科学计数法
最新推荐文章于 2024-08-31 23:09:33 发布