Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
406 | 朱秦千惠 | 倒序输出一个四位整数 | C++ | 解答错误 | 0 | 0 MS | 252 KB | 146 | 2019-09-19 19:28:56 |
#include<iostream> int main(){ int n=7980; int temp=0; while(n!=0){ temp=temp*10+n%10; n/=10; } printf("%d",temp); return 0; }