13 lines
175 B
C++
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;
|
|
} |