Do'nt know why is it wrong?

Question link- TAKENOTLESS Problem | CodeChef

Answer submitted- CodeChef | Competitive Programming | Participate & Learn

Your approach is wrong :-
1
4
1 2 3 3
Your O/p :- Zenyk
Correct O/p :- Marichka
–Since Marichka go first , he will choose 2
– Zenyk has only option to choose 3
– Marichka choose 3 and win it

1 Like

Thanks brother , I misunderstood problem, Well what i thought was that The first person will always go with Highest piles, then maybe it would have worked.

It happens brother , now try again and solve it !!

1 Like