| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74600 | sh25_shenpy | 分离整数的各个数 | C++ | 通过 | 0 MS | 260 KB | 358 | 2025-11-29 22:02:04 |
#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<x){ y=u; break; } } for(int i=1;i<y;i++){ x=pow(10,i); w=n%x; cout<<" "<<((n-w)/x)%10; } return 0; }