Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
105226 | 谢梓涵 | NOIP2011 普及:第一题 数字反转 | C++ | Compile Error | 0 | 0 MS | 0 KB | 209 | 2023-06-10 16:35:27 |
#include<bits/stdc++.h> using namespace std; int main() { string n; cin>>n; strrev(s); for(int i=1;i<=n.size();i++){ if(n[i]=='0')n[i]=""; else break; } cout<<n; return 0; }