Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68847 彭林江 04倒序输出五位数 C++ Accepted 1 MS 276 KB 260 2024-03-26 19:02:12

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,g,s,b,q,w; cin >>n; g = n % 10; // 12345 s = n / 10 % 10;//12345 b = n / 10 / 10 % 10;// q = n / 1000 % 10; w = n / 10000 % 10; cout << g << s << b << q << w; return 0; }