Coin Flip | CodeChef

my problem is showing TLE can you please tell me about the problem and also tell me about the reason of it.
here is my submission-
https://www.codechef.com/viewsolution/31447356

Look for the pattern by solving the problem using pen and paper. You will arrive at a solution which is much faster than your current solution.

1 Like

i have see i have observed that the coin face wil change for odd no. of rounds and remain same for the even no. of rounds
also i have changed the respective number of rounds for different no. of coins