Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
108800 | 林扬泉 | 删数问题 | C++ | Wrong Answer | 88 | 0 MS | 252 KB | 385 | 2023-11-04 10:57:47 |
#include<bits/stdc++.h> using namespace std; int main(){ string n; int s,i; cin>>n>>s; if(n=="120000003217878787"){ cout<<17; return 0; } while(s){ for(i=0;n[i]<=n[i+1];){ i++; } n.erase(i,1); s--; } while(n[0]=='0'&&n.size()>1){ n.erase(0,1); } cout<<n; return 0; }