Hacker News new | past | comments | ask | show | jobs | submit login

Maybe due to stdio synchronisation? This can be turned off.

https://en.cppreference.com/w/cpp/io/ios_base/sync_with_stdi...




He did that:

    "This line makes it run almost twice as fast:
    ios::sync_with_stdio(false);"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: