| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 21077 | 202102bxy | 8进制转10进制 | C++ | Accepted | 100 | 0 MS | 260 KB | 197 | 2021-06-26 15:05:35 |
#include<bits/stdc++.h> using namespace std; string e; long long ans,w=1; int main(){ cin>>e; for(int i=e.size()-1;i>=0;i--){ ans+=w*(e[i]-'0'); w*=8; } cout<<ans; return 0; }