Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5193 | 詹梓涵 | 06变换四位数 | C++ | Accepted | 0 MS | 272 KB | 294 | 2024-11-09 08:55:25 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() using namespace std; int main(){ int z; cin>>z; int a,b,c,d,ans; a=z%10; b=z/10%10; c=z/100%10; d=z/1000%10; ans=b*1+a*10+c*1000+d*100; cout<<ans<<endl; return 0; }