Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
69718 杜奕辰 06变换四位数 C++ Accepted 1 MS 276 KB 215 2024-04-06 14:39:09

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int n; cin>>n; int g=n%10; int s=n/10%10; int b=n/100%10; int q=n/1000%10; int ans=b*1000+q*100+g*10+s; cout<<ans<<endl; return 0; }