Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5963 张昊然 【基础题】三位数 C++ Accepted 1 MS 724 KB 256 2021-02-10 16:53:16

Tests(4/4):


Code:

#include <iostream> #include <cstdio> using namespace std; int main() { int n; cin >> n; int t = n; n = 0; while (t != 0) { n *= 10; n += t % 10; t /= 10; } cout << n; return 0; }