Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95662 | 翁思宸 | 06变换四位数 | C++ | Accepted | 1 MS | 272 KB | 403 | 2024-11-01 18:53:00 |
#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 a,b,c,d,h; cin>>h; a=h%10; b=h%100/10; c=h/100%10; d=h/1000; h=c*1000+d*100+a*10+b; cout<<h; return 0; }