Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
126176 | 陈冠樾 | 06变换四位数 | C++ | Accepted | 1 MS | 276 KB | 244 | 2025-07-16 16:10:21 |
#include<bits/stdc++.h> 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 = c * 1000 + b * 100 + e * 10 + d * 1; cout << f; return 0; }