https://pintia.cn/problem-sets/994805260223102976/problems/994805270914383872
简单简单。
#include<iostream>
using namespace std;
int main() {
int sum = 0, count_1=0, count_0=0;
string str;
getline(cin, str);
for(int i=0; i<str.size(); i++){
if(str[i]>='A' && str[i]<='Z'){
str[i] += 32;
}
if(str[i]>='a' && str[i]<='z'){
sum += str[i]-96;
}
}
while(sum){
if(sum%2==1){
count_1++;
}else if(sum%2==0){
count_0++;
}
sum = sum/2;
}
cout << count_0 << " " << count_1 << endl;
return 0;
}