| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 79266 | sh25_shenpy | 八进制转十进制数 | C++ | Wrong Answer | 1 MS | 264 KB | 288 | 2026-01-01 17:29:50 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,i=0,j=0,s=0,m,l,h; cin>>n; m=n; while(n>0){ n=n/10; i=i+1; } for(int k=0;k<i;++k){ l=m%8; h=pow(8,k); s+=l*h; } cout<<s; return 0; }