Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
91877 | hby | 04四位数移位 | C++ | Accepted | 1 MS | 272 KB | 215 | 2024-09-22 20:46:48 |
#include<bits/stdc++.h> using namespace std; int main(){ int q=0,b=0,s=0,g=0,a; cin>>a; g=a%10; s=(a/10)%10; b=(a/100)%10; q=a/1000; cout<<g<<q<<b<<s<<endl;//g*1000+s+b*10+q*100<<endl; return 0; }