advgr1997's blog

By advgr1997, history, 5 years ago, In English

In ABC 141 promblem F, I try to use "ios::sync_with_stdio(false)" with cin & cout, but the the service give me a "WA". after delete it , I get "AC".

Could anyone tell me the reason, Thank you so much.

https://atcoder.jp/contests/abc141/submissions/7850012

https://atcoder.jp/contests/abc141/submissions/7850000

  • Vote: I like it
  • +1
  • Vote: I do not like it

| Write comment?
»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

because you put it after you did cin >> n on the first line, it probably broke something.