Автор PavelKunyavskiy, 6 лет назад, По-русски

Важный день!

Сегодня мы узнаем победителей трека Engine VK Cup 2019–2020. Лучшие участники сезона, прошедшие отбор в феврале, к сожалению, не соберутся вместе на Новой сцене Александринского театра в Санкт-Петербурге, но в 17:05 начнут бороться за звание чемпиона VK Cup и призовой фонд:

  • 1 место — 524 288 рублей,
  • 2 местo — 131 072 рубля,
  • 3 местo — 32 768 рублей.

Болеть за финалистов можно по ссылке.

А уже в 02.11.2020 17:35 (Московское время) вас ждут Div1 и Div2 раунды по мотивам задач финала VK Cup.

Задачи для финального раунда VK Cup подготовлены сотрудниками ВКонтакте PavelKunyavskiy, izban, YakutovDmitriy и Kurpilyansky, .31, а также неповторимым 300iq. Дополнительные задачи для Codeforces раунда подготовлены Supermagzzz, Stepavly и MikeMirzayanov.

В подготовке и тестировании этого раунда помогали MikeMirzayanov, ecnerwala, Egor, hos.lyric, yosupo, lperovskaya, Stepavly, Supermagzzz, HIR180, qwerty787788.

Спасибо большое!

Удачи!

UPD И победителями VK Cup 2019-2020 становятся:

  1. tourist
  2. Endagorion
  3. Merkurev

Поздравляем! Полная таблица результатов доступна по ссылке.

UPD:

Div.1 Scoring: 500 1000 1500 1750 1750 2500

Div.2 Scoring: 500 1000 1500 2000 2500 3000

UPD: Разбор

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

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

Auto comment: topic has been translated by PavelKunyavskiy (original revision, translated revision, compare)

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

is it rated??

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

Best Wishes to the contest!

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

could you please mention the duration and the approximate number of problems in each div?

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

Hope that there will be interesting and pleasant problems)

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

Note that the start time is usual. :)

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

please tell me how to put a photo in the comments. plsss \(^▽^)/

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

Was it rated?

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

Дорешки не будет до окончания зеркала?

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

Wish it a big success!

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

Hello! In today's contest (round # 680) I was promoted to candidate master, I had previously registered as div2 in round # 681. Due to the announcement that some features were not available for the VK cup final round. Are they meaning that the changes will affect after the round? , I want to know if I have to give the div1 or the div2 (to make a virtual participation of two past contests to train). Thank you for reading . (I didn't find an answer in other blogs) uwu

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

Wow tourist won before it even started!

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

Congrats tourist for another victory!!

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

According to the VK Cup scoreboard, C had a significant FST rate (six FSTs compared to 19 solves). Will the pretests be augmented prior to the round tomorrow in order to prevent the same issue from presenting itself again?

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

    Why there's public scoreboard in the first place

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

      This is honestly not clear to me either, but obviously that ship has sailed. At the very least, though, the authors should take advantage of the fact that they basically just had 36 extra testers in order to ensure that the round doesn't devolve into a massive FST-fest. (I'm likely to participate if and only if this gets fixed; I'm not willing to risk my rating on a round where about 25% of C solutions FST.)

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

How many common problems between div1, div2 and VK Cup Final?

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

![ ](IMG_20200929_110612.jpg)

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

Thanks for the birthday round :) Hopefully, I can inflate up back to div1 lol

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

wait, I didn't get it..Is the contest already conducted as VK cup final and we are gonna get the same problems today?? Please clarify I am a newbie

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

How are the rounds constructed from the actual finals? Because original only had 6 problems. And reds only solving A and B, really scares me.

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

(IZOBRAZENIE_2020-11-02_150541.png)

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

Can someone please explain something? It seems to me that the people in the scoreboard have already been through the problem set are playing the role of testers in a way, and are not going to participate in the contest today! Am I right about this?

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

how many new problems are added for div 2?

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

can anyone tell me where i can find previous rounds based on VK cup on codeforces?

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

I have seen the scoreboard of VK Cup Finals 2019/20. Even some red coders were able to solve just one problem!! Is it really for div2 users?

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

Score distribution?

Edit 1: 25 minutes left and we don't even know yet how much problems are there

this is a serious issue, sorry for the tag MikeMirzayanov

Edit 2: 10 minutes, I think contest should be delayed. smh

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

How many Questions appears on the content???? and What there Score distribution?

question-mark.jpg

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

Please mention the contest duration, the approximate number of problems and score distribution of the problems in each div?

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

isn't it ? :( 44wfcm.png

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

Wait, full scoreboard? Isn't that a big spoiler?

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

May I become a Candidate Master after this contest

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

Why such a bad ordering?

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

I have this strong nagging feeling that I saw div1D before. Idk why.

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

    I think it's a variation of the problem 'termites' from the famous Looking For A Challenge book. I have read the problem after the contest but these ideas can probably be applied there

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

    Why divide and conquer doesn't work? It seemed soo classical. Is it an alternation of d&c optimization?

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

      My solution is kind of d&c. So we're doing basically knapsack DP for all "skip one array, all other arrays are either fully taken or ignored" cases. We can add $$$A$$$ arrays to a DP state in $$$O(AK)$$$. If we have a state where we processed all arrays except $$$[2^k \cdot i, 2^k \cdot (i+1)]$$$, we can use that to compute states for $$$[2^{k-1} \cdot 2i, 2^{k-1} \cdot (2i+1)]$$$ and so on. Okay, it's not really d&c but there's splitting ranges involved.

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

I was somewhat surprised to see $$$1A=2D$$$ and $$$1B=2F$$$, and other problems are not common between both division.

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

problem D div 2

what test can be in test 2 ?

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

It was only for me that Codeforces was down from 12h30 UTC-3 to 13h15 UTC-3 or it was like that for others? Maybe an internet issue on my computer? I could acess other websites though.

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

I have no Idea of D. So I would like someone to give hints/spoilers so that I can go towards building a solution. Help Appreciated in advanced !

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

    You need to find two sequences $$$b, c$$$, such that:
    $$$min(b_i, c_i) \gt = 0$$$
    $$$b_i + c_i = a_i$$$
    $$$b_i \lt = b_{i-1}$$$
    $$$c_i \gt = c_{i-1}$$$
    You can create them greedily from the end, giving $$$b_i$$$ lowest value possible ($$$max(a_i - c_{i+1}, b_{i+1}$$$)).

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

D1A is very similar to 1406D (which was in my contest)

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

3 of the first 4 problems greedy? :(

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

The sample tests have been extremely unhelpful for me this time.
Wrong answer on pretest 2

Couldn't figure out $$$C$$$, what was the solution?

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

Approach for Div2 B??

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

greedyforces

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

IN D is there any concept , find leftmin and rightmin and if current element is grater than sum of leftmin and right min then answer is no else yes. Is this approach is right ?

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

97488984 Can anyone explain why this code give me WA on 681 DIV2 C but gave all correct on my compiler

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

I'm gonna die if my div1D gets correct. Stupid WAs on pretest 2 costed me.

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

Is Div2 C solved with binary search?

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

in previous 3 contest some problems pass pretest but fails in system test , i hope not to repeat my streak lol.

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

How to solve C?

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

    For example, a binary search for the answer. Let's say we are given a number x. How to determine whether we can do this in no more than x? (Checker for the bs) Well let's go through the a array. If a[i] > x then we definitely need to go there on our own, since the company is not fast enough. Summarise all such a[i]. If sum > x then x is to small. If sum <= x, then this can be done in x.

    (In the start l bound for bs is 0 and r bound can be the largest a[i]) 97454890

»
6 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится -28 Проголосовать: не нравится

tbh Div2 A was very difficult for me to come up in < 10 minutes (in my real account) . Does any one else faced same issue ?

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

How to solve D?

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

    Consider an array $$$d$$$, where $$$d[0] = a[0]$$$, and for other positions, $$$d[i] = a[i] - a[i-1]$$$, which is the consecutive difference. The problem becomes like this, you have to make all the elements of the array $$$d$$$, 0. Now, decreasing all values of the segment $$$[0,r]$$$ of the input array $$$a$$$ by $$$1$$$ means to do $$$d[0]:=d[0]-1$$$ and $$$d[r+1]:=d[r+1]+1$$$. And decreasing all values of the segment $$$[l, n-1]$$$ by $$$1$$$ means to do $$$d[l] := d[l]- 1$$$. The reason for this is, if you increase or decrease the value of a segment by a constant, the difference of the consecutive elements of the boundary values of that segment are affected only. Try out some examples if you don't get it. So, you are allowed to decrease any element of the array $$$d$$$ by $$$1$$$ (operation 2), but if you want to increase any of the elements by $$$1$$$, you must also decrease $$$d[0]$$$ by $$$1$$$ (operation 1). So, summation of absolute value of all the negative values of the array $$$d$$$ must be less or equal to $$$d[0]$$$.

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

Can someone tell me what's wrong with the logic in this code for Div2 D:

https://codeforces.me/contest/1443/submission/97488563

basically, going through the elements from left to right, and checking if the smallest number on the left is smaller than the current number => if it is we check if we can decrease this current number from the right(by checking the minimum on the right) to make it equal to the smallest number on the left, if we can't decrease it then the answer is no, otherwise we decrease the whole range on the right by that amount^.

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

I think A is harder than B.

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

Has anyone solved B with DP?

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

Can someone tell how to solve the 4th problem? My logic was to make the array first decreasing and then increasing, if I am able to do so then answer is "YES" else the answer will be "NO" and but I was getting WA on pretest 2!! Can someone point out the mistake?

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

Hey everybody! Could you please comment why the following solution of div2 D is wrong (or maybe it's ok and I'm so freaking stupid that just have spent more than an hour to implement this correctly)

  1. We can make operations in any order we want.
  2. The amount of left-sided-operations for the element $$$i$$$ is more or equal to the same amount for the element $$$i+1$$$. The same for right-sided-operations. Let these amounts be $$$a_1, \dots, a_n$$$ and $$$b_1, \dots, b_n$$$ respectively.
  3. Let's go through the the sequence $$$v$$$ taking $$$a_1 = v_1, b_1 = 0$$$. Say we are looking at $$$i$$$-th element now. If $$$v_i \gt b_{i-1} + a_{i-1}$$$ than we need to increase $$$b_i$$$, thus $$$b_i = b_{i-1}, a_i = a_{i-1}$$$. Otherwise we need to decrease $$$a_i$$$ to $$$v_i - b_{i-1}$$$. If we can't do it — anser NO, otherwise we reach the end of the sequence and say YES.

Looks like a strict proof, but where is my mistake?

UPD: seems like the proof is ok and I'm kind of an idiot :D

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

Can someone tell me what's wrong with my solution? 97486806

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

Spent half the contest on A . Solved B + C + D for the remaining time

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

D2/F is quite easy, solved it after contest, but don't have enough time. RIP. Hope I can solve previous problems quicker next time!

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

I solved A almost one hour!!!

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

What was B? Couldn't understand in the whole contest. I need to improve my English more.

:(

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

can somebody say what is wrong in this Probelm B solution SOLUTION B

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

edit: never mind, I misunderstood the problem.

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

My aproach to Problem $$$D$$$ Div2 was:

For every $$$0 \lt i \lt n-1$$$ take $$$x=min(a[0],...,a[i-1])$$$, $$$y=min(a[i+1],...,a[n-1]$$$ and $$$if(a[i] \gt x+y)$$$ for any $$$i$$$ then the answer was NO, otherwise, the answer was YES. I can't find a case in which it doesn't work, could anyone help me?

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

OneLastDance were using an $$$\mathcal O \!\left( k \sum\limits_{i=1}^n t_i \right)$$$ algorithm to pass Div. 1 problem D: submission 97477874.

My similar submissions:

You can compare these two submissions, and you will be as confused as me.

(P.S. They called about $$$1.5 \times {10}^9$$$ std::max functions)

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

When will rating be updated?

UPD: Ratings changed!

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

Dreams come true ;)

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

what does upd stand for?

»
6 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится -32 Проголосовать: не нравится

thank you

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

Please, guys, can you let me know if the Div2 C question nowadays easier than the previous times. The reason I want to know is that for the past few contests I am able to solve the DIV2C question so I thought I was improving but at the same time my rating is always in the range 1400-1500 which implies I am stuck at the same solving level. Can someone help me with this?? Thanks in advance!!

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

Solving Div.1D with $$$O(nk^2)$$$ solution and lots of optimizes is soooooooooo cool

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

The round VK Cup 2019-2020 - Final Round (Engine) has a problem 1441F - Matching not included in the Div1/Div2 versions, and it is not included in the problemset page. It seems the only way to submit it is by virtual participation, and many people have done this already. Can you make this problem available for normal practice?

300iq