Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // https://codeforces.com/contest/977/problem/A
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- int n = 0, k =0;
- cin >> n >> k;
- while(k--)
- {
- if(n%10==0)
- {
- n /=10;
- }
- else
- {
- n--;
- }
- }
- cout << n;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement