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
CodeChef: Practical coding for everyone

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