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
I guess uint64_t(that is, "u"int64_t) is actually unsigned long long instead of the signed one?
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
Negative division is defined weirdly in C++, -1 / 2 = 0 and not -1