Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
302 | 陶俊宸 | 倒序输出一个四位整数 | C++ | Wrong Answer | 11 | 0 MS | 256 KB | 214 | 2019-09-18 20:35:59 |
#include<iostream> int main(){ int a,b,c,d,e,f; scanf("%d",&a); if (a>=1000&&a<=9999) { b=a%10; c=a/10%10; d=a/100%10; e=a/1000%10; f=b*1000+c*100+d*10+e; printf("%d",f); } return 0; }