Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
92145 | 王煜鑫 | 04四位数移位 | C++ | Accepted | 1 MS | 272 KB | 220 | 2024-09-28 14:08:23 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int n,a,b,c,d; cin>>n; a =n%10; b = (n/10) %10; c = (n/100)%10; d = (n/1000)%10; cout<<a<<d<<c<<b; return 0; }