The first question was very easy but i was getting WA, i immediately knew there was some issue with the tests. So i moved to second but the statement was unclear . But then i think they updated it so my WA changed into AC . And 3rd 4th were okay
As N>=3 is in the constraints, the testcase for N=1 wouldn’t exist. Apart from that, addressing the quality of the contest, I know that it was not upto the mark in many ways and it was haphazardly put together. I sincerely apologise for that. We will look at all the things that went wrong in designing the problems and make sure to improve on it.
" Note : If multiple answers are possible for a particular test case, then consider the solution where the starting number of chocolates i.e the number of chocolates received by the first friend is minimum."
Your solution outputs Y 198
If we consider an AP, that would mean A0 = 198, d = 1
i.e Your solution would distribute the chocolates as 198, 199, 200, 201, 202
The correct answer is Y 2
If we consider an AP, that would mean A0 = 2, d = 99
i.e The correct distribution of the chocolates is 2, 101, 200, 299, 398 as here the value of A0 is minimum