The Captain's Room

  • + 0 comments

    Here's my code:

    k, t = int(input()), list(map(int, input().split()))
    print(((sum(set(t))*k)-sum(t))//(k-1))