Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Hackerrank
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[] AliceArray = new int[3];
- int[] BobsArray = new int[3];
- int[] Results = {0,0};
- for (int i = 0; i < AliceArray.Length; i++)
- {
- AliceArray[i] = int.Parse(Console.ReadLine());
- }
- for (int i = 0; i < BobsArray.Length; i++)
- {
- BobsArray[i] = int.Parse(Console.ReadLine());
- }
- for (int i = 0; i < 3; i++)
- {
- if (AliceArray[i] > BobsArray[i])
- {
- Results[0] += 1;
- }
- else if (AliceArray[i] < BobsArray[i])
- {
- Results[1] += 1;
- }
- }
- for (int i = 0; i < Results.Length; i++)
- {
- Console.Write(Results[i] + " ");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment