| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 21084 | 邢逸轩 | 8进制转10进制 | C++ | Compile Error | 0 | 0 MS | 0 KB | 271 | 2021-06-26 15:09:23 |
#include<bits/stdc++.h> using namespace std; int a,w[101]; int ans; int main(){ cin>>a; for(int i=1;a;i++){ w[i]=a%10; a/=10; } for(i=1;i<=100;i++){ for(int j=1;j<=i-1;j++){ if(i!=1) w[i]*=8; } ans+=w[i]; } cout<<ans; return 0; }