Is there any incorrect in the problem statement?
The problem said \"fuel tank with total capacity of M < N litres\", but it is not consist with sample1 (M = 2000, N = 1000), could admin help to clarify this?
sorry, it\'s our mistake. and we check the test data. only sample1 can\'t satisfy the related constraints, no problem with other cases.