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 :

--

--

--

Software Engineer , hope you’ll appreciate the content. Also follow me on vocal @ https://vocal.media/authors/rajat-ir2e1e0bfm

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Is GraphQL is better than REST?

10 Headless CMS Options

Using Layered Lit to mix Texture Maps

Automating WhatsApp with NLP: Complete guide

Programming for Quantum Computing Pt. 1: NumPy

Where did my project_name go in my generators!?

Nextcloud scale-out using Kubernetes

How to use Bootstrap to create a responsive website

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
rajat aggarwal

rajat aggarwal

Software Engineer , hope you’ll appreciate the content. Also follow me on vocal @ https://vocal.media/authors/rajat-ir2e1e0bfm

More from Medium

03 — Storage Structure Explained in Plain English

What is Execution Context, Lexical Environment And Hoisting?

Sync vs Async vs Mutli-threaded vs Mutliprocessing[Explained]

Ruby vs Java: Key Differences