| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71160 | sh25_wangtaojie | 分离整数的各个数 | C++ | 通过 | 0 MS | 248 KB | 404 | 2025-10-24 15:23:50 |
#include <iostream> using namespace std; int main() { int n; cin>>n; if (n == 0) { cout << "0" << endl; return 0; } bool first = true; while (n > 0) { int digit = n % 10; if (!first) { cout << " "; } cout << digit; n /= 10; first = false; } cout << endl; return 0; }