Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- short n, a, b, c, s = 0;
- n = short.Parse(Console.ReadLine());
- while (n--)
- {
- a = short.Parse(Console.ReadLine());
- b = short.Parse(Console.ReadLine());
- c = short.Parse(Console.ReadLine());
- if (a + b + c > 1) s++;
- }
- Console.WriteLine(s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement