hasanb's blog

By hasanb, history, 9 years ago, In English

Hi I'm using Ubuntu compiler and I wrote this code 17711437 this code returns wrong answer input 2 and 3.

But in Windows this code gets Accepted. How can it be possible?

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

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

You need to add t.swp = 0; in the merge function.

  • »
    »
    9 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    It doesn't working. But thanks for help anyway.

»
9 years ago, # |
  Vote: I like it +8 Vote: I do not like it

I think I found the problem in your code.

#define y1 fkfrgff

should be:

#define y1 fkrgggfgk