NeoYL's blog

By NeoYL, history, 11 months ago, In English

This is my personal note and might be some kind of user editorial/learning material for some people!

This is the fifth episode of this "note" series. I will write notes on problems (normally around 2400-ish problems), that are both interesting and educational. I normally will spend a few hours on each problem so please be patient when reading the blog.

If you want to motivate me to write a continuation (aka note 6), a significant upvote from you would be well appreciated! If I received lots of downvotes (because I'm also spending a lot of time to write this and to learn latex only to express my ideas accurately to you guys), I'm probably not gonna continuing writing these blogs.

Problem link

Personally I think this problem is *2200.

Given three integers $$$N,X,Y$$$. This means that there is an $$$N*N$$$ grid with $$$cell (X,Y)$$$ is black.

The pattern is as follows:

pattern

Each $$$#$$$ means that there is a square grid of length $$$M$$$, $$$M$$$ is guaranteed to be odd and $$$M \geq 3$$$.

$$$N \leq 2 * 10^9$$$

Interactive:

Return True if the cell is black

Return False if the cell is white

Find the center cell of the grid in the pattern. $$$(X_{C}, Y_{C})$$$

Hint 1
Hint 2
Solution

I have an ugly code for this problem, please refer to codes from some other coders like ko_osaga.

Hope you guys learnt something from the blog.

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

»
11 months ago, # |
  Vote: I like it +8 Vote: I do not like it

Nice Blog Keep going! Here's the problem if someone wants a better read

»
11 months ago, # |
  Vote: I like it +46 Vote: I do not like it

you have been forced to do the other alien. full ac it as first problem of 2024

  • »
    »
    11 months ago, # ^ |
      Vote: I like it +6 Vote: I do not like it

    huh, which alien? The Alien that used the "Alien trick"?

»
11 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I think It'd be a good idea to put your difficulty rating to the problem in the blog content and preferably in spoilers.