Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132166 蔡胤泽 04倒序输出五位数 C++ Accepted 1 MS 272 KB 292 2025-10-07 10:42:13

Tests(10/10):


Code:

#include <iostream> using namespace std; int main(){ int a, b, c, d, e, f, g; cin >>a; b = a / 10000; c = a / 1000 % 10; d = a / 100 % 10; e = a / 10 % 10; f = a % 10; //g = f * 10000 + e * 1000+ d * 100 + c * 10 + b; cout << f << e << d << c <<b; return 0; }