Skip to content

Commit 0e4b909

Browse files
authored
Solution
1 parent bb36425 commit 0e4b909

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/python3
2+
3+
import math
4+
import os
5+
import random
6+
import re
7+
import sys
8+
9+
# Complete the compareTriplets function below.
10+
def compareTriplets(a, b):
11+
alice=0
12+
bob=0
13+
for i in range(3):
14+
if(a[i]>b[i]):
15+
alice+=1
16+
elif(a[i]<b[i]):
17+
bob+=1
18+
return (alice, bob)
19+
20+
if __name__ == '__main__':
21+
fptr = open(os.environ['OUTPUT_PATH'], 'w')
22+
23+
a = list(map(int, input().rstrip().split()))
24+
25+
b = list(map(int, input().rstrip().split()))
26+
27+
result = compareTriplets(a, b)
28+
29+
fptr.write(' '.join(map(str, result)))
30+
fptr.write('\n')
31+
32+
fptr.close()

0 commit comments

Comments
 (0)