Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2428 彭睿祺 06变换四位数 C++ Accepted 0 MS 260 KB 235 2024-01-06 14:56:22

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int x,a,b,c,d; cin>>x; a=x%10;//算个位 x=x/10; b=x%10;//十 x=x/10; c=x%10;//算百位 x=x/10;//千 d=c*1000+x*100+a*10+b; cout<<d; return 0; }