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

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

Hello, Codeforces!

On Saturday, Octorber 6th, 21:00 JST, AtCoder Beginner Contest 112 will be held.

The contest information is as follows:

  • Duration: 100 minutes
  • The number of problems: 4
  • Scoring: 100 — 200 — 300 — 400
  • Rated: Yes (for people whose rating is 1199 or lower)

Good luck and have fun!
Let's discuss about the problems after the contest.

UPDATE
1. The contest is over. Thank you for your participation.
2. Japanese editorial is published now. Editorial — Wait a moment for unofficial English editorial.
  • Проголосовать: нравится
  • +20
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

AtCoder doesn't officially share who the writer is, but I can tell that some of the problems in this contest, are written by E869120 and square1001!

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

    Are you sure it doesn't share who the writer is?!

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

      Well, I think that AtCoder is not sharing who the writer is, for "ABC Only" contests. They changed the system.
      Still, AtCoder shares the writer of ARC and AGC.

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

C and D are nice problems.

»
6 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

How to solve c?

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

    I just brute force the all possible cx and cy and figure out is there any possible H or not.

    Here is my code : link

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

      Can you please explain why to check this condition

      if (h[i] == 0) {
              mx = max(mx,a + b);
            }
      

      and this


      if (mx != -1 && res > mx) return -1;

      ?

      • »
        »
        »
        »
        6 лет назад, # ^ |
        Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

        Actually my solution got accepted with luckily. If H > a + b hi must bigger than 0. I want to check is there any i which hi = 0 and a + b < H.I had to check is H bigger than minimum a + b or not. I don't know how my first solution got accepted :D.

        Here is correct solution : link

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

Everyone, thank you for your participation.
Actually, problem A and C were written by E869120 and square1001. The other two problems were written by an other writer.

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

I think a diagram can be good for explanation of problem C.

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

How to solve D ?

  • »
    »
    6 лет назад, # ^ |
    Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

    Maximum divisor of M which satisfies (divisor * n) <= m.

    Spoiler
  • »
    »
    6 лет назад, # ^ |
    Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

    Let assume answer is d. So all elements should divided by d so we can say. ai = bi.d

    1 ≤ bi So we just need to check

    Here is my code :link

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

Auto comment: topic has been updated by E869120 (previous revision, new revision, compare).

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

Writer's Editorial for All Problems (in English):

Problem A: Programming Education
Problem B: Time Limit Exceeded
Problem C: Pyramid
Problem D: Partition
»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

To solve problem C i was thinking of a Binary search solution where i would binary search for the height of the pyramid and for every height iterate over all the possible values of Cx and Cy and check if the height and value of Cx and Cy satisfies the conditions. but i was not able to figure out the condition wether to move to the next smaller segment or larger segment. Can someone please help who has solved this problem with binary search.

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

Hey ! Did you guys write this contest ?

This must be your sixth contest then.

Why isn't AtCoder revealing the writers. They should, in my opinion.

Here are my solutions to this contest.

Here is my editorial to D :)

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

    Actually the 7th one (if only limiting to official contest, there are also 5 square869120Contests)! Starting from ABC 064, we've also wrote ABC 076, 088, 096, 100, 105, 106, and 112 :)
    ABC 105 was only problem B, and this ABC (ABC 112) was only problem A and C, though.

    And the answer to "why isn't AtCoder revealing the writers of ABC-only Contests (they are revealing ARC and AGC and other sponsored contests' writers) is, I think "the system has changed from some recent ABC-only and since then many people do the writer in a single contest (in other words, only one (group of) writer created one contest)".

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

      I remember you guys had a question called Snuke's Favourite Numbers or something like that ... I didn't understand the editorial on that one :)

      When is your next contest ? :)