Using scanf() in C++ programs is faster than using cin? - Stack Overflow
I don't know if this is true, but when I was reading FAQ on one of the problem providing sites, I found something, that poke my attention: Check your input/output methods. In C++, using cin and... ... Just as an observation - I played around with it, and ...