Xylenox's blog

By Xylenox, history, 7 weeks ago, In English
auto res = *ranges::partition_point(views::iota(lo, hi), check);

this returns the first $$$x$$$ in the range $$$[lo, hi)$$$ such that check(x) is not true, or $$$hi$$$ if it doesn't exist. Be careful to make sure the $$$lo$$$ and $$$hi$$$ are both integers of the same type, otherwise there is weird behavior.

example usage: 284450329

Full text and comments »

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

By Xylenox, history, 6 months ago, In English

I found this website codeforces.net, and I was about to sign in until I realized the url was different. Is this an official website, or a phishing scam?

Full text and comments »

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

By Xylenox, history, 7 months ago, In English
  • Vote: I like it
  • +42
  • Vote: I do not like it

By Xylenox, history, 8 months ago, In English
  • Vote: I like it
  • +61
  • Vote: I do not like it