Changed the folder structure of codeforces problemsets
This commit is contained in:
32
codeforces/problemsets/team/team.cpp
Normal file
32
codeforces/problemsets/team/team.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <cmath>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
int main(){
|
||||
ios::sync_with_stdio(0);
|
||||
cin.tie(0);
|
||||
|
||||
int t;
|
||||
cin >> t;
|
||||
|
||||
int n = 0;
|
||||
|
||||
for(int tc = 1; tc <= t; ++tc){
|
||||
int a, b, c;
|
||||
cin >> a >> b >> c;
|
||||
|
||||
if(a + b + c > 1){
|
||||
n++;
|
||||
}
|
||||
}
|
||||
|
||||
cout << n;
|
||||
|
||||
cout << flush;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user