Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
1505 | 老师 | 倒序输出一个四位整数 | C++ | Accepted | 100 | 0 MS | 256 KB | 285 | 2019-10-12 18:51:49 |
#include<iostream> int main(){ // int a,g,s,b,q; // scanf("%d",&a); // g=a%10; // a=a/10; // s=a%10; // a=a/10; // b=a%10; // a=a/10; // q=a%10; // printf("%d%d%d%d",g,s,b,q); int a; scanf("%d",&a); while(a>0){ printf("%d",a%10); a=a/10; } return 0; }