Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114455 | 曹锦择 | 04倒序输出五位数 | C++ | Accepted | 0 MS | 268 KB | 307 | 2025-03-22 12:58:45 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a = n / 1000 / 10;//1 int b = n / 1000 % 10; //2 int c = n / 100 % 10; //3 int d = n % 100 / 10; //4 int e = n % 100 % 10; //5 cout << e << d << c << b << a; //cout<<e*10000+d*1000+c*100+b*10+a; return 0; }