HackerRank May World CodeSprint: Compare the Triplets

,

https://www.hackerrank.com/contests/may-world-codesprint/challenges/compare-the-triplets

problem

$A = (a_0, a_1, a_2)$と$B = (b_0, b_1, b_2)$が与えられる。 $a_i \gt b_i$なもの、$a_i \lt b_i$なものをそれぞれ数えよ。

implementation

#!/usr/bin/env python3
xs = list(map(int,input().split()))
ys = list(map(int,input().split()))
a = sum(map(lambda x, y: x > y, xs, ys))
b = sum(map(lambda x, y: x < y, xs, ys))
print(a, b)