Skip to content

Instantly share code, notes, and snippets.

@ateruimashin
Created June 28, 2018 05:32
Show Gist options
  • Save ateruimashin/1738c689e40a293be4253b71f10b3e4a to your computer and use it in GitHub Desktop.
Save ateruimashin/1738c689e40a293be4253b71f10b3e4a to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int n;
cin>>n;
int ans=0;
for(int i=0;i<n;i++){
int a;
cin>>a;
while(a%2==0) a/=2,ans++;
}
cout<<ans<<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment