思路:超绝模拟题,写了一坨。题目大意就是只有第三位进行四舍五入,第二位和第一位只能进位
代码:
import sys
input = lambda: sys.stdin.readline().strip()
import math
inf = 10 ** 18
def I():
return input()
def II():
return int(input())
def MII():
return map(int, input().split())
def GMI():
return map(lambda x: int(x) - 1, input().split())
def LI():
return input().split()
def LII():
return list(map(int, input().split()))
def LFI():
return list(map(float, input().split()))
fmax = lambda x, y: x if x > y else y
fmin = lambda x, y: x if x < y else y
isqrt = lambda x: int(math.sqrt(x))
'''
'''
def solve():
a = list(map(int, I()))
l = len(a)
pre = 0
for i in range(2, -1, -1):
a[i] += pre
if a[i] >= 5 and i == 2 or a[i] == 10 and i != 2:
pre = 1
if a[i] == 10:
a[i] = 0
else:
pre = 0
if pre == 1 and a[0] == 0:
a = [1] + a
l += 1
print(f"{a[0]}.{a[1]}*10^{l - 1}")
t = 1
# t = II()
for _ in range(t):
solve()

京公网安备 11010502036488号