Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114097 | 成书骏 | 04四位数移位 | C++ | Wrong Answer | 1 MS | 272 KB | 315 | 2025-03-20 21:36:31 |
#include <iostream> using namespace std; int main() { int a; cin >> a; int b = a / 1000; int c = (a / 100) % 10; int d = (a / 10) % 10; int e = a % 10; int f = e * 1000 + b * 100 + c * 10 + d; cout << f << endl; return 0; }
------Input------
7980
------Answer-----
0798
------Your output-----
798