#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,k=0;
bool bo=true;
cin>>n;
char ch=getchar();
for(int j=1;j<=n;j++){
int a=0;
char s[100];
while((s[a++]=getchar())!='\n');
int i=0;
while(s[i]!='#'){
if(s[i]!=' '){
bo=false;
break;
}
i++;
if(i==a){
bo=false;
break;
}
}
if(bo==true&&s[i+1]==' '){
k+=1;
}
bo=true;
}
cout<<k;
return 0;
}
c++代码如上