标签:iostream views cout using cin ios space str return
#include <iostream> using namespace std; #define maxSize 10 int main() { int views[maxSize]; int n, res; while(cin>>n) { res=0; for(int i=0; i<n; ++i) { for(int j=0; j<3; ++j) cin>>views[j]; if((views[0]+views[1]+views[2])>1) ++res; } cout<<res<<endl; } return 0; }
标签:iostream views cout using cin ios space str return
原文地址:https://www.cnblogs.com/ozxics/p/10656477.html