The question states the MINIMUM distance to be travelled to get to an island is a[i] not EXACT. But the solution/tutotial use EXACT distance.
I think this question deserves a review
Codeforces 1119(Div 3) E
The question states the MINIMUM distance to be travelled to get to an island is a[i] not EXACT. But the solution/tutotial use EXACT distance.
I think this question deserves a review