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 | 3880 |
2 | jiangly | 3669 |
3 | ecnerwala | 3654 |
4 | Benq | 3627 |
5 | orzdevinwang | 3612 |
6 | Geothermal | 3569 |
6 | cnnfls_csy | 3569 |
8 | jqdai0815 | 3532 |
9 | Radewoosh | 3522 |
10 | gyh20 | 3447 |
# | User | Contrib. |
---|---|---|
1 | awoo | 161 |
2 | maomao90 | 160 |
3 | adamant | 156 |
4 | maroonrk | 153 |
5 | atcoder_official | 149 |
6 | -is-this-fft- | 148 |
6 | SecondThread | 148 |
8 | Petr | 147 |
9 | nor | 144 |
10 | cry | 143 |
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/