need help in understanding the time complexity of the following

beginner
c-plus-plus

#1

I was taking part in a practice contest and I noticed that my program was slower when I used the lines
ios_base::sync_with_stdio(false);

cin.tie(NULL);

Which is contrary to what I’ve read can someone please explain this


#2

It shouldn’t be like that… Can you share solution link ?


#3

share your code.