Facing run time error in Coin Flip

Question : https://www.codechef.com/problems/CONFLIP

Solution : https://www.codechef.com/viewsolution/22711196

Why am i facing a run time error?

Read careful, u have wrong input: The first line of each test contains an integer G, denoting the number of games…. u input G only one time.

1 Like

Thank you. I am such a noob. I look for help in submission section. There are bunch of solve solution but people have just written horrifying codes. Why such codes for this simple logic?

//