Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6442 | 吴承熹 | 04倒序输出五位数 | C++ | Wrong Answer | 0 MS | 264 KB | 399 | 2025-03-01 09:38:26 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,s=0; cin>>n; while(n!=0){ int g=n%10; n=n/10; s=s*10+g; } cout<<s<<endl; return 0; }
------Input------
15350
------Answer-----
05351
------Your output-----
5351