You are viewing a single comment's thread. Return to all comments →
Yeah, I cannot see a way to make this a one-liner, can you?
for _ in range(int(input())): n,c,m=map(int,input().split()) print(n//c+(n//c-1)//(m-1))
Seems like cookies are disabled on this browser, please enable them to open this website
Chocolate Feast
You are viewing a single comment's thread. Return to all comments →
Yeah, I cannot see a way to make this a one-liner, can you?