For the complete documentation index, see llms.txt. This page is also available as Markdown.

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;
}();

Last updated