early-morning-dreams's blog

By early-morning-dreams, history, 2 months ago, In English

I have recently became rich, so please suggest me some interesting ways to burn my money

Full text and comments »

By early-morning-dreams, history, 11 months ago, In English

Last time I made an ama blog it got sent to drafts a few days later, so you have an opportunity to ask me again.

Full text and comments »

By early-morning-dreams, history, 11 months ago, In English
  • Vote: I like it
  • +60
  • Vote: I do not like it

By early-morning-dreams, history, 11 months ago, In English

UPD. please dont be confused, this post is about goodbye 2023, not about hello 2024

Because when I pressed the room button, it opened the first room and not mine. I demand to make the round unrated because many people couldn't get the points for hacking, I know other people who had the same issue.

Full text and comments »

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

By early-morning-dreams, history, 11 months ago, In English
  • Vote: I like it
  • +56
  • Vote: I do not like it

By early-morning-dreams, history, 15 months ago, In English

Please don't use the nested spoilers, don't place multiple spoilers near each others, and don't put any link to the author's code after the spoilers. That's because spoilers aren't easy to open from mobile, especially when there are other spoilers and links around.

Full text and comments »

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

By early-morning-dreams, history, 22 months ago, In English
  • Vote: I like it
  • +1037
  • Vote: I do not like it

By early-morning-dreams, history, 2 years ago, In English

When it comes to writing a ternary search, what you usually do is this:

repeat 30/60/100/200 times {
    double lm = l + (r - l) / 3;
    double rm = r - (r - l) / 3;
    if (f(lm) < f(rm))
        r = rm;
    else
        l = lm;
}

Sources (notice the authors): 154861075 154863973

I recommend everyone who still writes like this to read this article . It will improve your ability to fit nested ternary searches. Also, I hope I don't need to explain why it is strictly better than the shown code.

Please, refrain from writing in the comments "but still their code works and is accepted!!1!".

Full text and comments »

By early-morning-dreams, history, 3 years ago, In English

In an upcoming job interview, I am going to present myself as an exceptional candidate. The question is: how to explain to the recruiter that winning SWERC and solving 1662K - Pandemic Restrictions without receiving any penalties makes me an outstanding engineer?

the recruiter is from the 30u30 Forbes list btw

Full text and comments »

By early-morning-dreams, history, 3 years ago, In English
  1. A straight line may be drawn between any two points.
  2. Any terminated straight line may be extended indefinitely.
  3. A circle may be drawn with any given point as center and any given radius.
  4. All right angles are equal.
  5. If two straight lines in a plane are met by another line, and if the sum of the internal angles on one side is less than two right angles, then the straight lines will meet if extended sufficiently on the side on which the sum of the angles is less than two right angles.

Full text and comments »

By early-morning-dreams, history, 3 years ago, In English

About me:

  • Authored cf rounds 581 & 618
  • Authored problems for IEEExtreme, for the local icpc competitions in Kyrgyzstan, for the hiring contests
  • Already earned 2175$
  • Cf master, ex-grandmaster

Some of my problems are in this gym https://codeforces.me/group/T38FDkT7VR/contest/352761

Full text and comments »