Блог пользователя NeoYL

Автор NeoYL, история, 5 месяцев назад, По-английски

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.

  • Проголосовать: нравится
  • +40
  • Проголосовать: не нравится

»
5 месяцев назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится +46 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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