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

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

We will hold AtCoder Beginner Contest 211.

The point values will be 100-200-300-400-500-600.

We are looking forward to your participation!

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

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

How to solve E?

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

Is there solution for E using dp on profile? Thought a lot about that.

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

My submission for problem D was basically a copy of https://www.geeksforgeeks.org/number-shortest-paths-unweighted-directed-graph/ because it doesn't make much sense to re-implement something else. Does AtCoder have any plagiarism checker, which could flag the use of third-party code?

  • »
    »
    5 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +4 Проголосовать: не нравится

    Spirit of the contest relies in cracking and implementing algorithm by user himself instead of searching it on web.

    • »
      »
      »
      5 лет назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      The spirit of the contest is to be brutally efficient, while complying with the rules. If you voluntarily decide to handicap yourself, then you will have a worse position in the scoreboard and the other people will outperform you.

      What makes people brutally efficient? Let's look at the best of the best. The solution of the fastest solver of the problem D had been submitted only 1 minute and 31 seconds after the start of the contest! Their problem D solution was just a simplistic use of a pre-written graph library code. What about "cracking and implementing algorithm"? That's what I have done with problem C myself and this did cost me around 30 minutes. But it was apparently a well known classic problem too, so the best competitive programmers only spent a little bit more than a minute to find useful code snippets in their collections of pre-written code. And tourist also has demonstrated how true champions are doing this in the last Codeforces Global Round 15. He quickly noticed that the problem I from that round was a reuse of an older problem, so he reused the already existing solution for it.

      Even if a problem is not a direct copy of the older one, then a way to trivially reduce it to one of the already known solved problems still may exist.

»
5 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится +12 Проголосовать: не нравится

I actually hated problems C and D.How can problems be so common?Because problems should be made with original concepts at a certain level.

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

derp: forgot modulo twice, only noticed one of them during contest.

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

Why in problem C, recursion with memoisation gives TLE, whereas the bottom-up approach works fine.

Code
»
5 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится +5 Проголосовать: не нравится

My approach to C is different from editorial:

https://atcoder.jp/contests/abc211/submissions/24490495

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

I haven't seen my solution to F described, so I'll drop it here. For each polygon, take the points with the lowest x-coordinate, breaking ties by y-coordinate. Then let the value of that point be $$$1$$$, and label the rest of the points going clockwise (or counterclockwise, doesn't matter since $$$M$$$ is even) with $$$1, -1$$$. Now to query $$$(x + 0.5, y + 0.5)$$$, we simply want the sum of the values of points in the rectangle with opposite points $$$(0, 0), (x, y)$$$. The implementation of this is very straightforward if you have rectangle sum already implemented. You can also easily extend this to solve queries where you can alternate between adding/removing polygons and querying how many polygons a point is in.

Submission