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

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

Two contests AtCoder Regular Contest 071 and AtCoder Beginner Contest 058 will be held at the same time.

You can participate in whichever contest you want. (However, you can't register to both competitions.) The last two tasks in ABC are the same as the first two tasks in ARC.

Time: April 8th (Saturday), 21:00 JST

Duration: 100 minutes

Number of Tasks: 4

writer: nuip

Rating: 0-2799 for ARC, 0-1199 for ABC

The point value are:

ABC: 100 — 200 — 300 — 500

ARC: 300 — 500 — 600 — 1000

We are looking forward to your participation!

UPD: 19 hours to begin.

UPD: 50 minutes to begin.

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

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

Do you need to register for the contest?

I can't see anything like this and I remember that previously it was quite obvious (like automatic redirect).

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

Are beginners contests rated?

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

How to solve D?

edit: Thanks for answers + English editorial!

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

    sum of differences of all pairs in X multiplied by sum of differences of all pairs in Y

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

    Ex:- 3 3 a1=1 3 6 a2=1 4 6

    Let a = (3-1)+(6-1)+(6-3) which is equal to

    For(i=1;i<n;i++) a+=i*a1[i]-cum1[i-1];

    where cum1 is its cumulative frequency. Caluculate same for other array(a2)and multiply both of them to get the final answer

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

    It is easy to use prefix and know how many units per unit length corresponds to the width

    The same re-use of the prefix and how many units have calculated how much contribution has been made

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

That moment when you realized you thought that 2, 3, 3, 4, 4, 4, ... (and similar sequences) is valid for some reason and thus fail to solve F T_T

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

    2, 3, 3, 4, 4, 4, ... , this sequence isn't valid.

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

      Yes, I know, but I thought it was valid during contest and wasted more than 1 hour solving something that's completely unrelated to the problem :(