I was participating in an online algorithm challenge.
It required me to take large inputs at a time.
I could not complete the challenge using "cin" for input but I was successful with scanf();
Why does cin take so long time as to change the order of the algorithm?
Can you please explain the difference in working of cin and scanf that it changes the order of the algorithm...
That is supposed to improve performance because the standard libs do extra work to ensure that all the calls can interoperate with fprintf() and fscanf().