Queries With Points facing TLE with just the IO


This is in context to following problem

I am facing the TLE(time limit exceeded) with Just the IO.
First I was using some logic and faced TLE. Then I resubmitted
the code that was giving just the static answers but still I face
TLE. I am using scanf and printf in c.

Please help

If you want to see about fast I/O please refer to these discussions from the discussion forum. They will help you solve the problem.

1 Like

Also the problem is said to be in interactive mode. Did you read about that? Make sure ur output is flushed before u take the next input. Else that’ll also be reported as a tle. More has been said about that in previous challenge editorials where the next input depends on pour output.