I was search some ways to improve the speed in inputs, Do you know some of these ways to improve the speed of inputs? There is other different way of ios_base::sync_with_stdio(0); cin.tie(nullptr); cout.tie(nullptr);
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3839 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3612 |
7 | Geothermal | 3569 |
7 | cnnfls_csy | 3569 |
9 | ecnerwala | 3494 |
10 | Um_nik | 3396 |
# | User | Contrib. |
---|---|---|
1 | Um_nik | 164 |
2 | maomao90 | 160 |
3 | -is-this-fft- | 159 |
4 | atcoder_official | 158 |
4 | cry | 158 |
4 | awoo | 158 |
7 | adamant | 155 |
8 | nor | 154 |
9 | TheScrasse | 153 |
10 | maroonrk | 152 |
I was search some ways to improve the speed in inputs, Do you know some of these ways to improve the speed of inputs? There is other different way of ios_base::sync_with_stdio(0); cin.tie(nullptr); cout.tie(nullptr);
Name |
---|
Auto comment: topic has been updated by JuanCamilo1979 (previous revision, new revision, compare).
It is often recommended to use
scanf/printf
instead ofcin/cout
for fast input and output. However, you can still usecin/cout
and achieve the same speed asscanf/printf
by including the following two lines in yourmain()
function:ios_base::sync_with_stdio(false);
https://www.geeksforgeeks.org/fast-io-for-competitive-programming/