题意:不知道
思路:队友写的
1 #include <stdio.h> 2 #include <vector> 3 #include <algorithm> 4 #include <string.h> 5 #include <limits.h> 6 #include <string> 7 #include <iostream> 8 #include <queue> 9 #include <math.h> 10 #include <map> 11 using namespace std; 12 typedef long long int lint; 13 14 int n,ans; 15 16 int main(){ 17 int n; 18 while(scanf("%d",&n)!=EOF){ 19 ans = 0; 20 for(int i = 1; i <= n; ++i){ 21 int num; scanf("%d",&num); 22 while(num != 0){ 23 int now = 1; 24 for(int i = 1; i <= 7; ++i){ 25 now <<= 1; now += 1; 26 } 27 now = (num & now); 28 num = num >> 8; 29 if(now == 97){ ++ans;} 30 } 31 } 32 printf("%d ",ans); 33 } 34 return 0; 35 }