getting time limit exceeded on SPOJ "MCOINS — Coins Game" problem.pls someone help me.
problem link->MCOINS — Coins Game
my code-> codepad
AtCoder Beginner Contest 483 discussion
ICPC NA North Central and South Division