python-algorithm

leetcode 1702A - Round Down the Price

무적김두칠 2022. 7. 19. 11:32

+

1
2
3
4
5
def sol(n):
    n_len=len(str(n))
    return n-10**(n_len-1)
for i in range(int(input())):
    print(sol(int(input())))
cs
반응형