AnkanNayak's blog

By AnkanNayak, history, 17 months ago, In English

I was solving this question 1499B - Binary Removals.

When I am using 'int' instead of 'long long', it's getting accepted 217216005. But in the long long code 217215826, My VS code is giving me correct output ,but when I am submitting the same code in Codeforces, the output is getting changed for the given test cases.

I just want to know why is that happening & how to fix this?

Request: If you can't help me,fine.Atleast don't downvote me.It refrains people like me to ask questions.

Full text and comments »

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

By AnkanNayak, history, 23 months ago, In English

Hello guys, Can someone tell me what's the difference between " int32_t main() ,int64_t main(), int main() , signed main() ...." and when to use what and what's the best for all cases ?

I would really appreciate if you guys can help me out.

Full text and comments »

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