思路:以4为一个分组分别进行处理
class Solution:def clumsy(self, n: int) -> int:answer_dict = {0:0,1: 1, 2: 2, 3: 6, 4: 7}if n > 4:answer = n * (n - 1) // (n - 2) + n - 3n -= 4else:print(answer_dict[n])return answer_dict[n]print(answer)while n >=4:current_answer = n * (n - 1) // (n - 2) - n + 3answer -= current_answern -= 4print(answer,n)answer-=answer_dict[n]print(answer)return answer