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

Revision en1, by _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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English _Comfortably_Numb__ 2018-03-18 08:52:40 345 Initial revision (published)