When should we use ios_base::sync_with_stdio(0)?

Правка en1, от _Comfortably_Numb__, 2018-03-18 08:52:40

In problem 220B - Little Elephant and Array my submission 36377029 got WA. Then I comment ios_base::sync_with_stdio(0) and submit the same code 36377330 again. It got accepted. Now I wonder why my first code got WA and when we should use ios_base::sync_with_stdio(0) and when we shouldn't.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский _Comfortably_Numb__ 2018-03-18 08:52:40 345 Initial revision (published)