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

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

Hi Codeforces!

We are happy to invite you to take part in Codeforces Round 561 (Div. 2). The contest will be held on May/17/2019 18:05 (Moscow time).

You will be given 6 problems and 2 hours to solve them. The round will be rated for all contestants with rating below 2100. As usual, participants from the first division are welcome to join out of competition.

The problems were written and prepared by Jefe and me. We owe a huge thanks to KAN for coordinating the round, to Lewin and mohammedehab2002 for testing, and of course, to MikeMirzayanov for the great Codeforces and Polygon platforms.

Good luck and have fun!

UPD: A huge thanks to neal, dreamoon_love_AA, and antguz for help with additional testing.

UPD2: Thanks for participating! System tests have finished. Congratulations to our winners!

Div. 2

  1. iristran911

  2. Sigyn

  3. HaylayWilliams

  4. albertg

  5. Tianhen

Div. 1 + Div. 2:

  1. 244mhq

  2. Um_nik

  3. uwi

  4. iristran911

  5. HIR180

Editorial will be available soon.

UPD3: Editorial is up!

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

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

A lot of rounds recently! That is awesome!

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

Hope I become CM after this round.

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

Hope it will be harder than before

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

i wish i could solve 2 or more problems this time :)

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

hope is a good thing..

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

I Hope the statement will be short and nice like the announcement .

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

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

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

round done by weeb... ... ..... .. ....... .... ... i am scared to try it!!

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

Oh Mexico Round SMT new

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

Is there any plan to announce the scoring distribution?

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

Thanks for div2. I want to be Master.

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

I know , U know, what if I told u...

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

I will try to do screencast with live commentary in English. If everything will go smoothly, you will be able to check it out on my YouTube channel some time after the round. Warning: English will be bad.

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

So what's the score for each problem?

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

where is score distribution

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

1166C - A Tale of Two Lands remind me of gravity falls :D

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

I was glad that the problems seemed good to me, but actually from my extra registration I can't submit my code, and it just alerts "You have submitted exactly same code before", though I didn't succeed to submit anything... Lost the chance to climb up qwq

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

Good Contest.

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

TestCase 12 for C?

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

Yay! A chance to be master if system tests won't reject me :P

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

Mathforces???????????????????????????????????

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

I need proof for E

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

ALL THE PROBLEMS WERE BEAUTIFUL EXCEPT FOR C

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

D is hard to implement.

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

Constructforces :v

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

For question C what is going wrong with this approach? https://mirror.codeforces.com/contest/1166/submission/54311053 thanks.

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

Is it just me or was problem A description confusing? I still don't get how three chatty students paired together are considered three chatty pairs, while two students together are considered one chatty pair

how does this generalise for n > 3 ?

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

how to solve E?

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

    The answer is possible if and only if there exists no pair of days on which Dora visits two disjoint sets of stores.

    The proof that no other cases work is trivial; the proof that all of these cases do is less so.

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

      Proof by construction -> for each set have unique prime and multiply all values visited on that day by the prime. Values start with 1 on day 1. Because each set contains its own prime and all primes of others, LCM in it will be maximum possible. On the other hand, if there is some value between stores that this set did not touch and its value is maximum possible, then it must contain all primes (I mean, number stored in it is divided by all those primes) and so each set contains it, contradiction, we said it was outside some set.

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

Problem C. Testcase:

4

1 1 2 2

What is the answer?

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

Thanks, Codeforces for another good round! Although, unfortunately, it will take a long time until the next round...

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

IMHO, problems D and E should have been valued equally. I didn't solve E, but I can see in the comments that there is a simple idea behind the solution (and more people solved it than D). On the other hand, D was a rather implementation-intense problem, it took 40 minutes to code the solution :)

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

for problem D isn't is hold? Any number between lower bound and upper bound form by current state a solution can be find ,i just did binary search by this but failed

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

thx 4 fast testing)

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

I read comments, many users have solved problem D with greedy algorithm. My solution is constructive, works in O(k^2) per query. I missed couple of minutes to submit:(((, but I believe I have a proof for my solution. Has anyone else solved it with a not greedy algorithm?

UPD: It turns out that my solution was wrong :( sometimes it doesn't find any solution), which is a pity as my solution was quite beautiful.

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

What is the point on setting too much math problems? >:(

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

Did anyone else solve E by constructing a DAG based on subsets, and checking for existance of topoloical order in that graph?

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

My first contest after a loooong time! Hello again Codeforces! ^^

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

Can someone tell me why I got WA on tc 20 for C 54289806

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

When both you and the problem setter do the math wrong...

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

Did you guys know that a = b.flip() on bitsets changes value of b??? I guess I'm lucky to catch that bug while participating out-of-contest :D

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

Моё решение по задаче А: link
Задача А из данного раунда имеет довольно простую идею, поэтому реализации разных участников могут совпадать или выглядеть, с точки зрения системы, довольно похоже: (link — author — MK_99).
Могу заверить, что свой код я не выкладывал в публичный доступ. (смысл сообщения — сообщение от системы о списывании)

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

I recommend you two pointers method for problem C. In my opinion so easier way than binary searches.

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

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

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

I cheated this contest and i am sorry for my behaviour, but i am still in the official list of participants and i think that i don't deserve to be in the official standings.

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

It’s a pity that I didn't become winner of div.2 qaq~

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

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

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

I suggest from now on everyone who cheats to get last place in the contest as punishment, like i did and got -181.

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

Codeforces must fix at least 1 contest every week. If possible 2-3 would be great!

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

The second test case for D problem is wrong as it is clearly mentioned in the question that ri>=1

juckter

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

Can someone please tell me why my codeis giving runtime error the only thing i did was to replace the first scanf for no. of test cases to cin

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

Me during the contest:

(for those who don't know, they are pinyin for the Chinese words "yes" and "no" and I speak Chinese as a native language)