Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
103470 王昕怡 04倒序输出五位数 C++ Accepted 3 MS 272 KB 421 2024-12-28 17:19:08

Tests(10/10):


Code:

#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(){ long long a,q,w,e,r,t; cin>>a; q=a%10; w=a/10%10; e=a/100%10; r=a/1000%10; t=a/10000; cout<<q<<w<<e<<r<<t<<endl; return 0; }