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

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

Hello, Codeforces!

It's my honor to invite you to Codeforces Round #536 (Div. 2), which takes place at 12:35 UTC, January 31st, 2019. The round will be rated for all division 2 participants (with rating less than 2100). Also we warmly welcome those division 1 participants to join us out of competition.

This is my second round on Codeforces platform, and my first round was on January 31st, 2018, which is such a coincidence that I would like to say thanks to KAN for his awesome coordination and great dedication to this round. Besides, much thanks to testers Aleks5d, cyand1317, mohammedehab2002, ---------- for their excellent testing work. Also, I would like to appreciate the Codeforces platform created and maintained by MikeMirzayanov, without which the round wouldn't be possible.

In order to celebrate the Lunar New Year (or Spring Festival) originated in China on February 5th, I proposed the round with 6 problems, whose theme is about the Lunar New Year. In this round, you are going to help Alice and Bob to solve some problems in the preparation of celebrating the Lunar New Year in 2 hours. I hope that those problems can interest you and improve your programming abilities, at the same time, bring you luckiness as well as high rating in the coming Lunar New Year!

As a convention, the scoring distribution will be announced soon.

Again, wish you more luckiness and higher rating!

UPD1: Editorial is published.

UPD2: The scoring distribution will be 500-1000-1250-1500-2250-3000. Note that there are 6 problems and you will be given 2 hours to solve them.

UPD3: System test is finished. We are sorry for that technical issue which ruined your happiness. Despite the issue, I hope you do learn something from the problem set, which might be far more important than the rating itself. Enjoy problems, and looking forward to the next contest with better problem set to learn something new, which in my opinion is what Codeforces platform wants to provide us with. Thanks for your participation and dedication even after the unrated announcement. :)

UPD4: The real Editorial is published. Thanks for your patience.

UPD5: Despite that the round is unrated, I have to announce the winners, who deserve it because of their hard work.

Div. 2

  1. developer227

  2. newbieyzr

  3. Zharaskhan

  4. I_AM_CHTHOLLY

  5. mzhmxzh

  6. radoslav192

  7. Vit.C

  8. visitWorld

  9. yycdage

  10. xuzhiyuan1

  11. zhangqingqi

  12. Crossguard

  13. gtrhetr

  14. Itst

  15. HwSh

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

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

Nobody wanna write some comments and get upvotes?

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

Does it mean,that I can still up specialist,until new year?)

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

Isn't it a bit early to celebrate Lunar New Year on Jan 31th?

I hope there is a round on Feb 5...

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

You wrote "Codeforce" instead of "Codeforces" in the title. I'm pretty sure you didn't do that on purpose since you wrote "Codeforces" everywhere else in the announcement. :-)

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

Thank god. I finally dun have to wait till 22:35 to join a contest and die to wake up the day after.

Love Chinese round :)))

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

When codeforces round starts early:

if (school && codeforcesround) { gotoschool=false; participateincodeforcesround=true; }

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

is it unrated? if its unrated i wont partisipate

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

god its contest made by chinese please no +150 lines of code implementation problems

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

Really thank you for this Chinese Round!I've never seen such a Chinese-friendly round before!

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

Very good for Chinese programmers. I don't need to buy a box of coffee this time:)

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

Hope that those who are praising the Chinese round will also keep praising after the contest! :P

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

Again, wish you more luckiness and higher rating!

luckiness??? Most of the time I am so unlucky.

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

Nice to have a good timing for South and South East Asian programmers! Thanks for organizing the contest.

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

I hope the author was trained in the school of GreenGrape

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

Your former contest problem set is really awesome. I think this time also we get some awesome problems.

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

Incoming game theory problem ;)

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

i hope the chinese are nice and don't mix math and programming like other people do. i couldn't partisipate in the last contest because of this and it was a smart move. if this doesn't have math i will be guaranteed a one-way ticket out of expert to candidate master.
i hope you won't crush our dreams with useless math, jinlifu1999 !

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

    Just interested, what do you call math? Is for loop like for (int i = 0; i<5; i++) also too complicated for you as it contains a plus sign which is obviously math?

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

      I think that even when the problem asked to print "Hello World", it's still a math problem with him.

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

codeforces admins are imposing censorship among the members of the community

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

why no one has taken the Bob handle yet?)

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

Will there be a translation into Russian? Sorry for bad English.

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

memefeb

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

Lunar New Year ,Alice and Bob ! The names and question story looking pretty much interesting ! Hoping for a great round ahed <3

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

oops seems like i cannot partisipate i have stuff to do whata bummer cout<<"poponar"

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

Awesome Editorial jinlifu1999

Hope this Helps :P

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

What happened to The Editorial??

UPD1: The editorial is published.

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

Alice and Bob means game theory A or B

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

"Editorial" is up guys! haha

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

je veux devenir pourpre

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

Alice and Bob...

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

zici

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

Seems that hacking is important in this round... It's a challenge to us without doubt. Also...more funny will come.(maybe) I think it might be a special round.

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

So fast editorial!! XDDD

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

What a nice and brief editorial!!!

Just awesome.

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

Wow... what a nice contest time for koreans! (9:35pm over here :D)

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

I think it should be unrated.

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

rip contest :(

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

Contest should be unrated

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

I hope they fix it soon and the contest doesnt go unrated.

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

An OI contest....

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

all the submissions that I'm doing are in queue for the past half hour... is it happening with just me?

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

Semi-rated?

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

Seems strange. The author remembered to thanks MikeMirzayanov and bad thing still happens.

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

thx for very interesting and hard problems, none of those can't be solved in a minute, also I'm very glad to see a 228 hours queue so everybody can show his true skill.

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

Make it unrated, unfair to people waiting in queues for like half an hour and then getting a wa on a pretest.

Sad :(

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

Will it be rated?

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

Hope this turns out to be unrated. Submissions not getting judged since last 30 min. How to know "in queue" is "AC" / "WA" !!!

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

Хороший контест. Мог бы быть:(

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

The contest was turning pretty good. But then long queue happened.

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

An extremely bad experience because the “in queue”!!

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

World's shortest horror story: "The round will be unrated because of technical issues".

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

Finally. Long live the contest!

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

Reminder: in case of any technical issues, you can use lightweight websites m1.codeforces.com, m2.codeforces.com or m3.codeforces.com

How to use m1.codeforces.com to resolve In Queue issue??

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

    It can be useful only if there's a problem with internet connection. Today using m1/m2/m3 couldn't help as the problem was with judgement system, not the website itself.

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

Well it could be a good round.

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

I think It should be rated or semi rated...all faced the same problem..so I hope it won't be unrated

or the round should be extended

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

I think it must be unrated :( Because we can't see a clearly result of our solution.

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

There's still an hour left! Hope the round will be rated

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

Help me find a word for this...

queue-forces? servers-down-forces??

WTF-is-happening-forces?!?!?!

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

Semi-Rated please !!

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

    How can it be semi-rated? What does it mean?

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

      In semi rated contest the rating change is applied only to the participants with positive change(increase) in their rating. It has been done in past contests.

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

Can't see my submissions, is this my problem? If I submit again, it says "You have submitted exactly the same code before" But I can't see any of them, they're all empty, not even in queue!

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

Just make it fcking semi-rated

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

    It would be unfair for the candidates who solved questions in first attempt to make it unrated, as they deserve their ratings. So better make it Semi-Rated.

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

30 minutes after I submitted my solution, it gave wrong answer verdict. Site is also too slow. Contest must be declared unrated.

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

Such Long Queue !!!!! What the hell :(

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

Is it rated?

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

If the contest goes rated, it would be unfair to those who made a silly mistake in their first submission, and got non-AC verdict more than thirty minutes after the submission. In normal Codeforces round, they would have quickly patched and resubmitted, but now they can't, and the points they would get for resubmitting the problem would be much much lesser than what they could have got generally.

Edit: even after the contest got extended, the above point still holds, and I believe quite a several number of people would be affected by such a situation.

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

WTF, make it unrated ..

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

After such a long queue, I don't see any point in keeping this round rated anymore. Even increasing time duration doesn't make any sense.

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

What's the point extending the contest, I've never realized....

How come it would do justice with the inconvenience caused?

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

the problem C lookes just like NOIP2018 Day1 T1 when I hadn't gotten it's meaning

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

Looks like queue is moving. Wonder if it will clear before end of contest.

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

Is the contest extended? It still shows 1hr 15min remaining?

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

QueuedeForces

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

Maybe it should be semi rated that people who waited the queue and got any verdict other than AC it should be unrated for them..and people who waited the queue and got AC it should be rated for them.

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

Man, I got a 'WA' due to long long problems and waited for 30 minutes and received it ! Argh!

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

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

Should be unrated. Makes no sense to just extend the round.

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

WA on test case 1 after waiting for like 20 mins xD

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

Extended??

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

Let's not hate on jinlifu1999 too much, he made very interesting problems and the technical issues weren't his fault.

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

    The problems were not interesting! C, D were easier than B which was just a dumb implementation question.

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

unrated. :(

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

The round is UNRATED....

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

I bunked my class for this contest :'(

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

Another emotional story within 15 words . "Due to technical problems, the round will be unrated. We're really sorry about that"

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

It's down again...

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

i will never become green :(

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

Anyone remembers round 485? The queue froze down. The same story like in this contests. The round was rated that time. I don't know why don't make it rated too. Codeforces should make these decisions consistently. If that was rated this should also be rated.

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

Story of today's Contest: 1) Submit solution till D in first half hour 2) Wait for verdict on B,C,D 3) Get a wrong/tle 4) Submit a better solution. 5) Be happy because predictor shows increment. 6) Contest goes Unrated. cries in corner

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

Guys, sorry about the failed round :( Please, do not downvote the post if you liked the problems. The writer is not responsible for the incident.

This time we faced with the direct actions to break down the testing process. Somebody found an issue in the judging process and exploited vulnerability to make it really slow. I'm working on the fix.

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

Why on earth is that there is no hacks?

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

Maybe the problem should be ACDBEF?

I submit a code for problem B in 0:34, and get a Wrong Answer 7 in 1:14.

Then I found that I forget use long long.

Submit and Accept in 1:18.

Wrong Answer = 40min + 50point.

Hope Codeforces will be better.

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

I left codeforces some 2 years ago due to 80% of rounds being declared unrated back then. It was quite unwise to come back and expect something else I suppose.

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

I want to be candidate master In fact. I failed

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

-160 минут жизни

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

为什么 Codeforces 会在中国春节前出现问题?如果是黑客攻击的话,我感受到了黑客深深的恶意 另外,我本来能涨60分。。。。。。

Why does Codeforces always have problems before the Chinese New Year? If it is a hacker attack, I feel the hacker's deep spite What's more, I could have a rating change for +60

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

I'm really really really sad to face this unrated contest...

It is farther for me to be a master...

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

what's your opinion about not to be rated ?

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

Hello. I can not understand why the round will be unrated? What's the reason?

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

I heard this round is unrated. Is that true?

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

What is wrong with my B. code? Its running fine in PC but showing WA in TC 1 ? How ? I m stuck..

This This This

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

"Как же я ненавижу эту математику" (fedoseev.timofey)

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

When first time solved 5 tasks during contest (if they will pass final tests, of course, but anyway!) and.. it is unrated :D

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

    it was my first time to solve 4 problems within less than 1 hour... sad unrated

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

ALL of my friends had gave up this contest as soon as they got the message that the contest would be unrated.

I lost the only chance to be orange before the Spring Festival.(because if I want to join in other contests I must stay up late.)

I think Codeforces can build an extra judgement system in reserve since this happened more than once.

Sorry for my poor English.And hope Codeforces can become more and more nice.

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

 .

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

Thanks for contest.

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

Bad day, I stay up late till 22:44(local time). And tell me unrated? However that's alright, I'm in bad state today. So Happy Chinese NEW YEAR everyone!

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

    is 22:44 late?

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

    Lol, you stay up LATE till 22:44 ? What if I say you that THE MOST of the contests for me starts in 00:35/01:35 ? But yesterday round started just in 22:35 :D That is why I took part in it, and... it is unrated :(

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

Problem C was nice, but now I can't stop thinking how could the problem been solved if n could be odd. Any idea?

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

    i think you need only to marge to int then n will be even , but i don't know what is the best two number to marge them maybe it's the two largest number

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

      Try merging the largest number with each of the other number and run the greedy process, then you have an N^2 kind of brutal algorithm, that’s the best I could come up with...

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

im so relieved i DDIDNT partisipate ikn this contest... Ive asked multiple times like usual: is it rated is it rated everyoine say IT IS RATED BITCH READ and i say sorry i cant read and then pfaaa mama im actual intellect because now its unrated as i exepcted

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

If its ok to discuss problems now, has anyone else faced WA on pretest 23 for problem E? I can't seem to figure out what might go wrong with the logic.

Upd: Never mind that, silliest implementation mistake. Really worth my handle name.

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

I think this round will be unrated because the system is too slow and there was too many queue

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

How to solve D???

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

    You can do an almost normal BFS traverse, starting from vertex 1.

    The only difference is, to maintain the lowest lexicographically order, instead of storing to-traverse-list of vertices in a queue, we'll store in a MinHeap-based priority queue ;)

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

      why we can't sort adjacent list and start dfs iristran911 ?

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

        This is not enough. I made the same mistake as you ;)

        Take this graph for example:

        5 4
        1 2
        2 3
        2 4
        3 5
        

        So, you start a DFS from 1, which leads to 2, then 3, then 5, then 4.

        However, I can turn back and visit 4 beforehand instead ;)

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

    bfs with priority queue (lower node index has higher priority)

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

How to solve F? I reduced it to solving a root of xa = b(% p) , and found no way to solve it.

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

can any one explain B

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

    What can we explain here? It's just a simulation of what's happening in a shop. There's no special algorithm or trick that can be used.

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

C was much easier then A and B

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

LOL seems like problem B & D must change their positions

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

How to solve F? I just find out that we can find the power of fk in fn using matrix exponentiation, but how to solve a congruence system like xa ≡ b (mod 998244353) for x if we know a and b?

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

Here's a proof for C's greedy solution if you are wondering:

1: Groups must be formed as pairs of 2.

Proof: As (a+b)^2 > a^2 + b^2 for positive a, b, we want to minimize group size. As size has to be greater than 1, and N is even, all group sizes must be 2.

Now, we have to pair each number with another such that sum is least. We double this sum. This doubled sum can now be represented as summation (ai + bi)^2 where ai and bi are both permutations of the given numbers.

2: ai and bi must be oppositely ordered sequences

Proof: summation (ai + bi)^2 = summation (ai)^2 + summation (bi)^2 + summation (2*ai*bi); We want to minimize this sum. We observe that the first two terms are constants (sum of squares of all given numbers). So, we want to minimize the 3rd term. This is done when ai and bi are oppositely ordered, proof is a direct application of rearrangement inequality.

Now, observe that this doubled sum corresponds to the pairing where ai is paired with a(N-i+1), with i <= N/2. Thus, we are done.

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

Me waiting after submission. Waiting....... waiting....... One eternity later .......... Fk it, anyways its going to unrated

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

I solved problem B in 30 seconds and wrote its code in 30 minutes :( I think problem B wasn't a good problem for an algorithmic contest. But maybe I'm wrong.

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

    Div2 A/B are rarely algorithmic problems anyway. They're almost always implementation. It's just that the implementation was slightly annoying in this case.

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

Has anyone else faced WA on pretest 21 for problem E?

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

    It might be that you use "set" instead of "multiset".

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

    If u used multiset, u should erase like multi_set.erase(multi_set.find(x));

    Because erase on multiset is erasing all elements which value is x.

    I did same mistake lol.

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

Has anyone else faced WA on test9 for problem E?.... And why I cannot submit my code now.....QAQ

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

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

Make it rated for first 25 minutes when there was no queue.

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

    LOL thats unfair...

    I'm disappointed too because I did well in this contest, but server was not good and we should accept this situation.

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

I see some people didn't like question B. Personally, I didn't mind problem B because it's a straightforward problem that wasn't too tedious to implement (my solution was only 30 lines and can probably be shortened). I think being able to quickly and correctly implement a solution is just as important of a skill as knowing that obscure number theory algorithm that is used in a problem once a decade. Also I think that it's sometimes hard for problem setters to come up with interesting div 2 A and B that aren't just implementation or simple math, but I appreciate their effort in trying.

Some people were also saying that B should have came after C and D. B's solution was just simulating the process (with speedup) and only required knowledge of sorting. C required intuition (need to think to match small with large) while D required graph knowledge, so I think B is more likely to be solved by a someone without experience (i.e. a beginner) than C or D.

Anyway, unfortunate situation with the long queue. Hope next contest goes better.

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

What is the solution of F?

I got stuck at counting the number of solutions of the ecuation n^x=y

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

don't blame Codeforces bad things happen:D

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

You owe us one more contest)

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

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

Hey,

Could someone provide me with pointers to why this submission got MLE? https://codeforces.com/contest/1106/submission/49268507

Seems as if most of the people who got an AC did the same thing, except maybe declaring the vectors as global.

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

1 round unrated after so many contests is surely acceptable.Thanks Codeforces!

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

Whenever I want to gain some rating, the contest will be unrated = = sad story

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

Where is my rating :(

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

In queueueueueueueueueueueue round... How I hope that it can be rated!

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

thanks for the round i really learned something

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

Poor Alice(Expert) and Bob(specialist)!