RE in MINIAND

my solution https://ideone.com/gOz9Do
question https://www.codechef.com/PLIT2020/problems/MINIAND

provide the input of the program in the custom input section(input section in ideone) .

i am getting runtime error on codechef not on ideone

what is the type of runtime error can u mention.

You’re reading in the input wrongly; take a closer look at the Input: section of the Problem description.

        int t;cin>>t;
	int n;cin>>n;
1 Like

i have made the changes but i am getting TLE (1.01)
how can i fix it??or i have to think of different logic??

1 Like

This? https://www.codechef.com/viewsolution/29013091

You’ll have to think of different logic :slight_smile:

1 Like