Don’t Use cin and cout in C++
This is the case for competitive programming. In competitive, the cin and cout command tends to take more execution time than its counterparts scanf and printf.
The scanf and printf command may usually be used in C language but it tends to perform better and faster than other commands. But the problem which arises with using print is that we have to remember each and keyword for each data type. Such as :