MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / main

Function main

Codeforces_problems/A. Team/solution.cpp:3–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <iostream>
2
3int main()
4{
5 //Creation of vars
6 int n, a, b, c, count = 0;
7 //Take in input for n lines
8 std::cin >> n;
9 //Loop for n
10 for (int i = 0; i < n; i++)
11 {
12 //Take in user input
13 std::cin >> a;
14 std::cin >> b;
15 std::cin >> c;
16 //If more than 2 are sure then they will do the problem
17 if (a + b + c >= 2)
18 //Increase problem count
19 count++;
20 }
21 //Return problem count
22 std::cout << count;
23 return 0;
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected