+
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 |
반응형
'python-algorithm' 카테고리의 다른 글
백준 4696 St. Ives (0) | 2022.08.02 |
---|---|
codeforces 200B - Drinks (0) | 2022.07.20 |
leetcode 1702B - Polycarp Writes a String from Memory (0) | 2022.07.19 |
codeforces 791A - Bear and Big Brother (0) | 2022.07.12 |
leetcode 2022. Convert 1D Array Into 2D Array (0) | 2022.07.11 |
댓글