Codeforces-SolutionsA/Codes/977A Wrong Substraction/977A.cpp
2023-12-15 13:43:18 +06:00

13 lines
175 B
C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,k;
cin>>n>>k;
while(k--)
{
if(n%10==0) n=n/10;
else n=n-1;
}
cout<<n;
}