i have dry run the code on paper and its works perfectly. please help me to find out problem with my code. I know my approach will give TLE but i think my approach is correct. function game strip tell whether the person with chance is going to win or not.
I know there is a easy solution for this problem but just wanted to know my code is not working.
Problem Link : https://www.codechef.com/LTIME87B/problems/ARRGAME
Solution Link : https://ide.codingblocks.com/s/323688