1
class Solution:
2
def stoneGameVI(self, A, B):
3
G = [a + b for a, b in zip(A, B)]
4
G.sort()
5
L = len(A)
6
d = -sum(B) + sum(G[i] for i in range(L - 1, -1, -2))
7
return 1 if d > 0 else (-1 if d < 0 else 0)

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0