Was the question rejudged? If not will it be rejudged after the contest? I think there are still some basic cases which havent been cosidered.
2 Likes
Actually if you read the problem carefully you will find that nowhere it is mentioned that the resultant array contains only integers!
Eg : 1 5 2 has a possible answer of 1 1.5 2 etc
In any case the solutions will not be rejudged (most probably)
yaa it shouldnt be rejudged after the deadline. The codes which give wrong answers on the following test cases also have been uploaded.
4 1
1 2 7 4
or
6 4
0 1 4 7 3 6
1 Like