You are viewing a single comment's thread. Return to all comments →
I am just going to leave this here. I got the formula for finding the answer by shere cheating. Like I am super bad at Math
K, ROOMS = int(input()), list(map(int, input().split())) print((K*sum(set(ROOMS)) - sum(ROOMS))//(K-1))
Seems like cookies are disabled on this browser, please enable them to open this website
The Captain's Room
You are viewing a single comment's thread. Return to all comments →
I am just going to leave this here. I got the formula for finding the answer by shere cheating. Like I am super bad at Math