Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace test
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- bool isTrue = false;
- int trueCount = 0;
- int falseCount = 0;
- for (int i = 0; i < n; i++)
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int c = int.Parse(Console.ReadLine());
- if (b != 0 && a / b == c)
- {
- isTrue = true;
- }
- else
- {
- isTrue = false;
- }
- if (isTrue)
- {
- trueCount += 84;
- falseCount = falseCount / (84 / 10);
- }
- else
- {
- trueCount = trueCount / (70 / 10);
- falseCount += 70;
- }
- }
- bool isResult = false;
- if (falseCount != 0 && (trueCount / falseCount) % 2 == 0)
- {
- isResult = true;
- }
- Console.WriteLine($"T: {trueCount}");
- Console.WriteLine($"F: {falseCount}");
- Console.WriteLine($"Got a Roin coin: {isResult}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement