Skip to content

Configuring input and output streams

Alexey Dmitriev edited this page Nov 11, 2018 · 1 revision

Configuring input and output streams maybe done in submission.template (and in run.template if you need some of this changes locally too).

If you need to print more digits after comma by default, you can add out.precision(/* number of digits */); after creating an output stream (and before calling a solver).

If you do not use input/output facilities from <cstdio> (and you probably should not), you may speed up input from stdin and output to stdout by calling std::ios_base::sync_with_stdio(false);