| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 20834 | 赵天羿 | 8进制转10进制 | C++ | Accepted | 100 | 0 MS | 256 KB | 163 | 2021-06-20 15:27:03 |
#include<bits/stdc++.h> using namespace std; int a,ans,w=1; int main(){ cin>>a; while(a){ ans+=a%10*w; a/=10; w*=8; } cout<<ans; return 0; }