Блог пользователя sorenii

Автор sorenii, история, 3 года назад, По-английски

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

  • Проголосовать: нравится
  • -6
  • Проголосовать: не нравится

»
3 года назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +1 Проголосовать: не нравится

It is often recommended to use scanf/printf instead of cin/cout for fast input and output. However, you can still use cin/cout and achieve the same speed as scanf/printf by including the following two lines in your main() function: ios_base::sync_with_stdio(false);

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится
cin.tie(0)->sync_with_stdio(0);