How to make your program FASTER!!!

Правка en1, от Meron3r, 2024-02-01 13:42:51

Everyone wants to make there code FASTER but there is lots of simple solution. the first and most simple one is this:

std::ios::sync_with_stdio(false);

What this does is that usually cout is synced with stdio. so if we set it to false it will make the code slightly faster

Also you can set cin.tie and cout.tie to NULL like this:

cin.tie(NULL);
cout.tie(NULL);

Which will also make it alittle bit faster.

Теги #makecodefaster

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Meron3r 2024-02-01 13:42:51 483 Initial revision (published)