| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 93892 | liyichen | 8进制转10进制 | C++ | Accepted | 100 | 0 MS | 260 KB | 202 | 2024-05-04 20:43:54 |
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; int ans=0,a,w=1; for(int i=s.size()-1;i>=0;i--){ a=s[i]-'0'; ans+=w*a; w*=8; } cout<<ans; return 0; }