Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114475 | 郭玉洁 | 04倒序输出五位数 | C++ | Accepted | 1 MS | 268 KB | 278 | 2025-03-22 13:13:25 |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a = n / 10000; int b = n / 1000 % 10; int c = n / 100 % 10 ; int d = n % 10000 % 1000 % 100 / 10; int i = n % 10000 % 1000 % 100 % 10; cout << i << d << c << b << a; return 0; }