| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 5543 | 孙文谦 | 分离整数的各个数位 | C++ | Accepted | 100 | 0 MS | 252 KB | 419 | 2020-08-14 11:43:36 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,x,y; scanf("%d", &n); x=n; int i; for(i=1;i<=10;i++){ if(i==1) { y=x%10; printf("%d ",y); } if(x<10) break; y=(x/10)%10; printf("%d ",y); x=x/10; } return 0; }