mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-08-21 06:26:20 +00:00
[Init] Solved solutions
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
n, k = input().split()
|
||||
n, k = int(n), int(k)
|
||||
while (k):
|
||||
if n % 10 == 0:
|
||||
n /= 10
|
||||
else:
|
||||
n -= 1
|
||||
k -= 1
|
||||
n = int(n)
|
||||
print(n)
|
||||
Reference in New Issue
Block a user