GETTING RUNTIME ERROR with almost identical code one getting AC

qs link—

ac sol
https://www.codechef.com/viewsolution/29934294
rumtime error solution
https://www.codechef.com/viewsolution/36086957

Consider the test input:

1
(a-b)
1 Like

yes

oh yes i forgot - in this case tnx

1 Like