working of fast i/o

can anyone please explain the fast i/o method?
how to implement it?

Try :
Fast Input using getchar_unlocked()

2 Likes

There are many method for getting input or printing output, but some of method too slow and some faster than others. So you should choice that methods which are more faster.
Such as printf() and scanf() more faster than cin and cout in C/C++.