1from itertools import cycle, repeat, starmap2from operator import floordiv345class Solution:6 def totalMoney(self, n: int) -> int:7 return sum(8 starmap(9 add,10 zip(11 starmap(floordiv, zip(range(n), repeat(7, n))),12 cycle((1, 2, 3, 4, 5, 6, 7)),13 ),14 )15 )
WPM •0 •0
ACC •0 •0
TIME •0