Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
114095 成书骏 04四位数移位 C++ Wrong Answer 1 MS 276 KB 359 2025-03-20 21:34:09

Tests(5/8):


Code:

#include <iostream> using namespace std; int main() { int a; cin >> a; int thousand = a / 1000; int hundred = (a / 100) % 10; int ten = (a / 10) % 10; int one = a % 10; int result = one * 1000 + thousand * 100 + hundred * 10 + ten; cout << result << endl; return 0; }


Run Info:

------Input------
7980
------Answer-----
0798
------Your output-----
798