#include<bits/stdc++.h> using namespace std; int main() { char b[26]; cin >> b; int len = strlen(b); int ans = 0; for(int i=0; i<len; i++){ ans = ans*2 + b[i] - '0'; } cout << ans << endl; return 0; }

0 条评论

目前还没有评论...

信息

ID
74
时间
1000ms
内存
256MiB
难度
6
标签
递交数
60
已通过
27
上传者