getting time limit exceeded on SPOJ "MCOINS — Coins Game" problem.pls someone help me.
problem link->MCOINS — Coins Game
my code-> codepad
Colin X Sam X Shayan | Easy Problems Duel | NAC Warmup #1
Codeforces Round 946 Solution Discussion