Skip to content

Commit 67159d2

Browse files
author
harish3600
committed
Added solution to team problem under Greedy section
1 parent e606e01 commit 67159d2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Greedy/(CODEFORCES) team.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
#define ll long long int
4+
#define w(x) ll x; cin>>x; while(x--)
5+
#define fast std::ios_base::sync_with_stdio(false); cin.tie(NULL);
6+
#define pb push_back
7+
#define vec vector
8+
int main()
9+
{
10+
fast
11+
ll count=0;
12+
w(x)
13+
{
14+
ll a,b,c;
15+
cin>>a>>b>>c;
16+
if(a==1 && b==1 || b==1 && c==1 || a==1 && c==1)
17+
count++;
18+
}
19+
cout<<count<<endl;
20+
21+
return 0;
22+
}

0 commit comments

Comments
 (0)