Information
- ID
- 1012
- Time
- 1000ms
- Memory
- 64MiB
- Difficulty
- 10
- Tags
- # Submissions
- 2
- Accepted
- 2
- Uploaded By
#include<bits/stdc++.h>
using namespace std;
int main(){
int len,c=0;
string str;
cin>>len>>str;
for(int i=0;i<str.size();i++){
c+=(str[i]-'0')*pow(2,len-i);
}cout<<c/2;
return 0;
}
嗨嗨嗨
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.