ConquerCode's blog

By ConquerCode, history, 6 weeks ago, In English
 
 
 
 
  • Vote: I like it
  • -16
  • Vote: I do not like it

»
6 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by ConquerCode (previous revision, new revision, compare).

»
6 weeks ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

run without fastio, it is working, and on the second note you should add fastio as the first line in main function , so after doing that change it is working fine.

»
6 weeks ago, # |
  Vote: I like it +5 Vote: I do not like it

About sync_with_stdio:

If any input or output operation has occurred using the standard streams prior to the call, the effect is implementation-defined. Meaning: it depends on compiler if sync_with_stdio used after read/write from/to cin/cout.

So call this exactly once before any read/write operation.