| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 143315 | 伊建润 | 04四位数移位 | C++ | Wrong Answer | 0 MS | 272 KB | 341 | 2026-01-11 20:09:40 |
#include <iostream> using namespace std; int main() { int num; cin >> num; int units = num % 10; int tens = (num / 10) % 10; int hundreds = (num / 100) % 10; int thousands = num / 1000; int newNum = units * 1000 + thousands * 100 + hundreds * 10 + tens; cout << newNum << endl; return 0; }
------Input------
7980
------Answer-----
0798
------Your output-----
798