#include<bits/stdc++.h> using namespace std; const int N=1e3+10; int n,cnt,i=1; int main() { cin >> n; while(n!=0) { int ge=n%10; n/=10; cnt+=ge*i; i*=8; } cout << cnt; return 0; } //老登布置的作业系列
注册一个 TeMenHu 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 TeMenHu 通用账户