dakshdixit183's blog

By dakshdixit183, history, 2 hours ago, In English

Hi I am facing an issue in the problem 2036F - XORificator 3000 where I was getting WA when I am using long long But when I looked at the editorial the only major diff was using uint64_t instead and I got accepted

Can anyone explain why this is happening given below are the 2 codes

291907844

291907876

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

»
115 minutes ago, # |
  Vote: I like it +3 Vote: I do not like it

I guess uint64_t(that is, "u"int64_t) is actually unsigned long long instead of the signed one?

  • »
    »
    107 minutes ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    It is even failing for such small cases like "2 28 3 7"

    I think I am missing something some property or something I have analysed it using debugs but not able to find where it is going wrong

»
91 minute(s) ago, # |
  Vote: I like it +7 Vote: I do not like it

Negative division is defined weirdly in C++, -1 / 2 = 0 and not -1