Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 319 Bytes

io-optimization.md

File metadata and controls

12 lines (10 loc) · 319 Bytes

IO Optimization

By prepending the following code, the execution time of problems with large input will be improved a lot.

// The following block might trivially improve the exec time.
static const auto __optimize__ = []() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(NULL);
    return 0;
}();