Simple math question

help

#1

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


#2

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


#3

can you explain approach for solving this question


#4


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