Comments

You so cool. I got understand. Thank you so much! <3

result

But it still wrong

Thanks <3333333! but it's not working properly. Here's the link to the original problem d4^yn4`y. You can have a look.

Auto comment: topic has been updated by rb235 (previous revision, new revision, compare).

well ~~

oh, can you explain with an example pls :(

Yeah out 7: 1 5 -> 1 5 -> 6 0`` but abs( (1 + 1 + 6) — (5 + 5 + 0) ) = 4 or did I misunderstand

Someone please explain problem G, i don't understand :( example: test case inp 3 6 1 8 1 9 30 10 out 7 1 5 1 5 6 0 why the first line = 7 @@

I have read it. But it not help me to solve the problem. Thanks