| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 21085 | 邢逸轩 | 8进制转10进制 | C++ | Accepted | 100 | 0 MS | 256 KB | 275 | 2021-06-26 15:10:12 |
#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(int 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; }