Hi everyone I was practicing on this problem https://mirror.codeforces.com/contest/283/problem/A and i am getting a TLE but my solution works in o(1) time for each query so i figured that it is a problem in the input or output this is the submission 72396868 so can you please send some c++ input/output optimizations that make them faster also how can we input long doubles with scanf ...thanks
Auto comment: topic has been updated by solver11 (previous revision, new revision, compare).
"endl" flushes the output, hence making it slow. Try using '\n' instead of "endl".