Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
20837 孙喻桐 8进制转10进制 C++ Accepted 100 0 MS 252 KB 163 2021-06-20 15:39:19

Tests(5/5):


#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; }


Judgement Protocol: