| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74598 | sh25_shenpy | 分离整数的各个数 | C++ | 输出超限 | 0 MS | 268 KB | 338 | 2025-11-29 21:58:19 |
#include <bits/stdc++.h> using namespace std; int main( ) { int n,w,x,y; cin>>n; cout<<n%10; for(int u=1;u<=9;u++){ x=pow(10,u); if(n<u){ y=u; } } for(int i=1;i<y;i++){ x=pow(10,i); w=n%x; cout<<" "<<((n-w)/x)%10; } return 0; }