Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68829 杨珞烯 04四位数移位 C++ Wrong Answer 1 MS 268 KB 257 2024-03-25 21:12:38

Tests(0/8):


Code:

#include <iostream> using namespace std; int main(){ int a,b,c,d,n; cin >> a,b,c,d; n = a,b,c,d; a = n / 1000; b = n / 100 % 10; c = n / 10 % 10; d = n / 1 % 10; n = 1000*b+100*c+10*d+a; cout << n <<endl; return 0; }


Run Info:

------Input------
6234
------Answer-----
4623
------Your output-----
2346