Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
8001 | 陈一畅 | 倒序输出一个四位整数 | C++ | Wrong Answer | 11 | 0 MS | 244 KB | 208 | 2020-10-31 13:51:50 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e,f; cin>>a; b=a%10; a=a/10; c=a%10; a=a/10; d=a%10; a=a/10; e=a%10; f=b*1000+c*100+d*10+e; cout<<f; return 0; }