mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-10-11 03:13:15 +00:00
[Init] Solved solutions
This commit is contained in:
1 parent
51f667ac81
commit
20542601dd
131 files changed
+4148
No files matched your search
+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