bluesilver17's blog

By bluesilver17, history, 4 years ago, In English

Problem:https://codeforces.com/contest/1391/problem/B Code woking well with online compiler and in codeLite https://codeforces.com/contest/1391/submission/89450999 Can someone help with this problem

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

| Write comment?
»
4 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Hello,

It seems to be some form of undefined behavior — Here's my submission (exact same code): 89456236

Edit: Removing fflush(stdin) does the trick. 89456926