Reminder: fastio does not speed up cerr

Правка en2, от misty, 2025-07-28 06:41:27

This is obvious but easy to overlook. If you use something like ios_base::sync_with_stdio(0); cin.tie(NULL); for fast printing, it does not affect the cerr output stream. Hence, if you print too many debug statements to cerr, you might TLE for seemingly no reason.

Reference: https://codeforces.me/contest/2128/submission/331216699, https://codeforces.me/contest/2128/submission/331215429

EDIT — clog is faster and serves a similar function. Reference: https://codeforces.me/contest/2128/submission/331238365

Теги output format

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский misty 2025-07-28 06:44:41 95
en2 Английский misty 2025-07-28 06:41:27 130
en1 Английский misty 2025-07-28 00:37:00 449 Initial revision (published)