- 练30.2 错误减法
123
- 2025-3-10 17:45:09 @
#include<bits/stdc++.h> using namespace std; long long n; int k; int main(){ cin>>n>>k; for(int i=1;i<=k;i++) { cin>>n>>k; if(n%10){ n=n-1; } else { n=n/10; } } cout<<n;
return 0;
}
0 comments
No comments so far...
Information
- ID
- 95
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 7
- Tags
- # Submissions
- 14
- Accepted
- 12
- Uploaded By