본문 바로가기
python-algorithm

codeforces 977A - Wrong Subtraction

by 무적김두칠 2022. 4. 29.

1
2
3
4
5
n, k = map(int, input().split())
for i in range(k):
    if n%10 == 0 : n//=10
    else : n-=1
print(n)
cs
반응형

'python-algorithm' 카테고리의 다른 글

codeforces 486A - Calculating Function  (0) 2022.04.29
codeforces 155A - I_love_\%username\%  (0) 2022.04.29
codeforces 520A - Pangram  (0) 2022.04.29
codeforces 1328A - Divisibility Problem  (0) 2022.04.29
codeforces 339A - Helpful Maths  (0) 2022.04.29

댓글