| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 323531 | 孙一铭 | 【C6-2】正整数n转换为8进制 | C++ | Wrong Answer | 0 | 1 MS | 256 KB | 227 | 2025-05-18 13:26:36 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n; string s; char c; if(n==0){ cout<<0; return 0; } while(n>0){ m=n%8; c=m+'0'; s=c+s; n/=8; } cout<<s; return 0; }