ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

C++ std::ios::sync_with_stdio(false) should be added to FAQ
Posted by cd 30 Mar 2015 19:11
Disabling syncing with C's stdio by using std::ios::sync_with_stdio(false) makes the C++ streams very fast (even faster than C's scanf/printf in many cases) allowing more elegant C++ solutions that don't suffer TLE. (like problem 1100). This should be in the FAQ.

http://stackoverflow.com/questions/1042110/using-scanf-in-c-programs-is-faster-than-using-cin