| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79263 | sh25_shenpy | 十进制转八进制 | C++ | 解答错误 | 0 MS | 252 KB | 257 | 2026-01-01 17:22:08 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,i=0; cin>>n; int s[1010]; while(n>0){ s[i]=n%8; n=n/10; i=i+1; } for(int j=i-1;j>=0;--j){ cout<<s[j]; } return 0; }