Mexicano's blog

By Mexicano, history, 6 hours ago, In English

Hello Codeforces!

I'm sorry if this blog is not related to CP!

Is anyone interested in these subscriptions?

Jetbrains — Datacamp or github student pack generally.

Full text and comments »

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

By Mexicano, history, 11 months ago, In English

I found this problem here. basics — bitwise operations, and this is the link of it.

Any accepted solution depends on a greedy approach that walking from the MSB, but it's clear that it doesn't work on very simple tests like that

3 4

1 1 4

The greedy approach makes X = 4 which give a result = 10, the real solution must make X = 2, so the result = 12.

That means there's a bug in this problem, so any suggestions to solve it with a trusted approach?

Full text and comments »

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