Oh yeah ig I forget to do that thanks!
But wait this code even fails on test 1 :
6 0 998244353 1000000000 314159265 676767677 999999999 987654321
It gives something like :
5 5 2 6 1 3 4 1 4 2 4
So, i mean this should not be the case for 1 elf to remain. Every one must die.
So, it mean there might be either bug in implementation or my approach is wrong.
If 2nd is the case then i wanna know why. Atleast i want to hear it form someone else except me :)
Oh yeah ig I forget to do that thanks!
But wait this code even fails on test 1 :
It gives something like :
So, i mean this should not be the case for 1 elf to remain. Every one must die.
So, it mean there might be either bug in implementation or my approach is wrong.
If 2nd is the case then i wanna know why. Atleast i want to hear it form someone else except me :)