1class Solution:2 def numPairsDivisibleBy60(self, time: List[int]) -> int:3 res, count = 0, [0] * 604 for one in range(len(time)):5 index = time[one] % 606 res += count[(60 - index) % 60] # %60 is for index==07 count[index] += 18 return res
WPM •0 •0
ACC •0 •0
TIME •0