-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSolution.cs
35 lines (30 loc) · 899 Bytes
/
Solution.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
class Solution
{
static void Main(String[] args)
{
var tokens_a0 = Console.ReadLine().Split(' ');
var a0 = int.Parse(tokens_a0[0]);
var a1 = int.Parse(tokens_a0[1]);
var a2 = int.Parse(tokens_a0[2]);
var tokens_b0 = Console.ReadLine().Split(' ');
var b0 = int.Parse(tokens_b0[0]);
var b1 = int.Parse(tokens_b0[1]);
var b2 = int.Parse(tokens_b0[2]);
int aliceTotalScore = 0;
int bobTotalScore = 0;
if (a0 > b0)
aliceTotalScore++;
else if (b0 > a0)
bobTotalScore++;
if (a1 > b1)
aliceTotalScore++;
else if (b1 > a1)
bobTotalScore++;
if (a2 > b2)
aliceTotalScore++;
else if (b2 > a2)
bobTotalScore++;
Console.WriteLine(aliceTotalScore + " " + bobTotalScore);
}
}