Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4730 | 高振轩 | 06变换四位数 | C++ | Wrong Answer | 0 MS | 260 KB | 253 | 2024-09-13 21:09:34 |
#include<bits/stdc++.h> using namespace std; int main(){ int a=0,b=0,n,c=0,d=0; cin>>n; a=n/1000; b=n%1000/100; c=n%1000%100/10; d=n%1000%100%10; if(a==0){ cout<<b<<d<<c<<endl; } else{ cout<<b<<a<<d<<c<<endl; } return 0; }
------Input------
8051
------Answer-----
815
------Your output-----
0815