标签:
#include <iostream> #include<stdio.h> using namespace std; int main() { int n; cin>>n; getchar(); while(n--) {char e; int sum=0; while((e=getchar())!=‘\n‘) { if(e<0) sum++; } cout<<sum/2<<endl; } return 0; }
标签:
原文地址:http://www.cnblogs.com/nynu-ycg6/p/4650765.html