| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 143999 | 张晓冉 | 04四位数移位 | C++ | Wrong Answer | 0 MS | 272 KB | 322 | 2026-01-18 10:30:51 |
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a < 1000||a > 9999) return 1; int g,s,b,q; g = a%10; s = a/10%10; b = a/100%10; q = a/1000; if(g != 0){ cout<<g<<q<<s<<b<<endl; }else{ cout<<g<<q<<b<<endl; } return 0; }
------Input------
6234
------Answer-----
4623
------Your output-----
4632