DONT USE STD::ENDL!

Правка en1, от Meron3r, 2024-03-19 10:37:01

Why??? You might be asking... well, std::endl is the most common thing that might be giving you TLE. It's because std::endl flushes every time. But on the other hand, '\n' only flushes once every 1000 times because is is just a newline character. But if you are used to writing std::endl or endl, you can just make a define for it. #define endl "\n"

Теги endl

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Meron3r 2024-03-19 10:38:40 55 Tiny change: 'endl "\n"`' -> 'endl "\n"`. If you think I am wrong, just comment, don't dislike.'
en1 Английский Meron3r 2024-03-19 10:37:01 374 Initial revision (published)