Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6905 赖梓乐 06变换四位数 C++ Accepted 0 MS 268 KB 407 2025-03-23 15:58:58

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(){ int q,w,e,r,p; cin>>p; q=p/1000; w=p/100%10; e=p/10%10; r=p%10; cout<<w*1000+q*100+r*10+e;//w<<q<<r<<e; return 0; }