Run ID:162643
提交时间:2026-10-18 09:18:24
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; int shi=0,l=s.size(); for(int i=l-1,j=0;i>=0;i--,j++){ shi+=(s[i]-'0')*pow(2,j); } cout<<shi<<endl; return 0; }