Simple math question

i am try to solve these question since morning but i am not able to solve this then i see solution from other but i cant get it
so any one can explain me how to solve this
https://www.codechef.com/MAY19B/problems/MATCHS

Read Game Theory and how to approach such problems.Game Theory articles

1 Like

can you explain approach for solving this question


can any one explain me this why n/m is greater then 1 trun it into a loosing or winning position