Thursday, August 16, 2018

Optimize code C/C++

If you are using linux: use getchar_unlocked() and putchar_unlocked() for taking fast single character I/O.
In Windows the equivalent is getchar() and puchar() repectively



Resources:
[1] fast input/output https://ideone.com/BrsDz4


Enteprise solutions:
[1] http://www.fastformat.org/

No comments:

Social Indexes

  [1] Crime Index https://www.numbeo.com/crime/rankings.jsp  [2] Traffic Index https://www.numbeo.com/traffic/rankings_by_country.jsp