Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
93488 | 张新福 | 04倒序输出五位数 | C++ | Wrong Answer | 1 MS | 272 KB | 144 | 2024-10-16 19:37:07 |
#include <iostream> using namespace std; int main(){ int n,x=0; cin>>n; while(n!=0){ x=x*10+n%10; n=n/10; } cout<<x<<endl; }
------Input------
15350
------Answer-----
05351
------Your output-----
5351