Skip to content

Instantly share code, notes, and snippets.

@sritasngh
Created September 10, 2020 08:15
Show Gist options
  • Save sritasngh/7992b09f2087384b1fd9979281e02620 to your computer and use it in GitHub Desktop.
Save sritasngh/7992b09f2087384b1fd9979281e02620 to your computer and use it in GitHub Desktop.
ios_base::sync_with_stdio(false); cin.tie(NULL);//used for fast input output
--scanf,printf is faster than cin,cout but we can use cin,cout and achive the same speed
//ios_base :: sync_with_stdio(false):It desynchronize all the C++ standard streams with their corresponding standard C streams
//cin.tie(NULL) :tie() is a method which simply guarantees the flushing of std::cout before std::cin accepts an input.
This is useful for interactive console programs which require the console to be updated constantly
but also slows down the program for large I/O. The NULL part just returns a NULL pointer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment