본문 바로가기
python-algorithm

leetcode 1702A - Round Down the Price

by 무적김두칠 2022. 7. 19.

+

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
반응형

댓글