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

Автор FieryPhoenix, 4 года назад, По-английски

Hi Codeforces!

I’m thrilled to invite you to Codeforces Round 638 (Div. 2), which will take place on 01.05.2020 17:35 (Московское время). It's rated!

There will be 6 problems, and you will have 2.5 hours to solve them. All the problems are written and prepared by me.

Huge thank you to everyone who made this round possible:

I hope everyone will enjoy the problems! I have tried to make short statements and strong pretests. Hopefully this contest will be even better than my previous one :)

UPD: Thanks also to darnley for proofreading statements and suggestions!

UPD: The scoring distribution is standard: 500 — 1000 — 1500 — 2000 — 2500 — 3000

UPD: Editorial is here

UPD: Congratulations to the winners! I hope most of you enjoyed the round. If you have any questions, feel free to ask in the comments.

Overall Winners:

  1. dreamoon_love_AA

  2. KrK

  3. peti1234

  4. antontrygubO_o

  5. I_love_Tanya_Romanova

Div 2. Winners:

  1. Fecto_Elfilis

  2. czyarl

  3. NishimiyaShouko

  4. PureVessel

  5. Neraxis

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

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

Thanks for your hard work making the contest,

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

Thank you Fiery for taking the time to write a contest for us. I am sure it will be a stellar contest since it was written by the god Fiery himself.

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

It is going to be good contest! GL & HF for everyone!

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

Ahh, more ans more contests!! I like it..

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

OMG BENQ TESTED A ROUND :O

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

codeforces is saving me in this quarantine period.

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

short statements and strong pretest very happy to see this

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

Looking forward to some FieryProblems with FieryPretests !!

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

[Deleted]

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

    Except yours.

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

      :((((((

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

        When people put "[Deleted]" on their comments, that just makes me want to downvote them more. I'm still gonna see the comment, but now I have to spend time pressing previous revision.

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

          How to do that? Where is the option / button for that?

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

            On top of every edited comment, left of the upvote button.

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

            If a comment has been edited, there would be ← Rev. 2 to the left of the upvote/downvote count (or a higher number if it's been edited multiple times).

            Click on that left arrow to go to the previous revision.

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

            I seriously don't understand why my above comment deserves downvotes I just thanked a person It's not like I care about my contribution , but I would like to know what it is that i said which is troubling people? [Edit: I posted this when there were 21 downvotes]

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

          Oky i wont edit them like that anymore, seems everyone has the same thoughts as you. In my opinion when someone deletes his/her comment, then it means he is shameful of what he said or he thinks his comment is nor fun neither helpful.

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

        [Deleted]

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

        WTF -125 0-0

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

I'm Waiting eagerly to participate in this contest in the quarantine period. Hope it will create an excitement a bit more

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

hope this will be wonderful

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

Thanks to Codeforces for saving me from my boring time,which gives me more opportunities to get in touch with algorithm knowledge and make lots of like-minded friends.Thanks for your hard work to make this meaningful contest.
I'm really looking forward to this contest!! Hope everyone have a good performance. Good Luck ! :)

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

Can someone share his old contest's link ?

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

thanks FieryPhoenix... thanks codeforces... the only friend i can visit yet *_^ Always at the peak :))

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

I'm glad for the short statement. I hope the authors of future contests also think like you.

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

It will be great if there is no links in the statements:) -> it always takes me a long time to open them.:(

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

Thank you to make sure exact "problem number and contest duration" before 2 days .

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

Tight! Tight! Tight! Yeah!!!

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

Thank you and Codeforces team for making our quarantine enjoyable and productive.

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

2cob0e

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

Thanks for it "** I have tried to make short statements and strong pretests**"

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

Announcement: ...You, for participating!

Everyone :

ZQdv9UQ

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

""I have tried to make short statements and strong pretests."" ..Happy to see this..i think there have not any confused word like "simultaneously" (in the previous contest) ..GL everyone.

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

I appreciate your efforts for personally writing this post yoursef :)

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

Thanks a lot. But please make the problem statements clear enough and straightforward. Best Wishes <3

»
4 года назад, # |
  Проголосовать: нравится +54 Проголосовать: не нравится
"You, for participating!"

It felt so good to hear this.

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

i have a good feel about the contest ,I feel this contest have a nice ideas and problems.

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

Hope no "simultaneously" to meant "at anytime".

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

Hey!

I'm sorry if this has been asked before — but I'm just curious about why rounds are becoming longer on average? There seem to be a few rounds these days which are either 5 questions in 2 hours or 6 questions in 2 hours and 30 minutes. A short while back, rounds seemed to be 6 questions in 2 hours on average.

Are authors and coordinators looking to make rounds harder, or maybe more implementation based? Or is this to account for more participants in some way?

Thanks!

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

It feels like I'm participating in the contest after ages

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

Nothing matters anymore

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

I want to be Master !!! rp++

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

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

    Please stop re-posting memes from last contests. Get something new man! We're bored of this.

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

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

Hi, I am new to this platform and would like to know more about the contest. Details such as — what parameters will affect my ratings?

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

    For your site rating, the system is ELO based. For the rating for any particular contest, the problems are worth different amounts, and you also get less points for a problem as time goes on.

    You can look up the FAQ.

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

Very happy to hear "short statements and strong pretests". This contest is how all contests should be. Also, one very very good thing is this guy thanks the participants , a new start on Codeforces . This practice should be carried on.

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

Scoring distribution please. :)

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

Hope for a balanced contest (hope so, because of balance score distribution)

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

As someone who tested this round, I can guarantee that FieryPhoenix's English is very good, and there are no major grammatical mistakes in the task statements!

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

    I'm curious. Given the situation, you would have found "major grammatical mistakes in the task statements". What would you have posted here instead?

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

      As a tester I would have fixed them before the contest even began by pointing them out to the contest writer :)

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

    I would be very shocked if his English was bad, considering he is in United States.

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

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

Can u make it 30 or 60 minutes earlier?

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

Do anybody here like long story type statements? I enjoy them, when the story has a character. The story of the character of one problem is related to the previous one.

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

    I don't mind a story and sometimes I enjoy reading them. All I'm asking for, though, is clarity of the task. I think it is better for short contests like codeforces ones (2 to 2.5 hours) to have brief statements, as not every participant is equally educated to English.

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

    Go read novel. Dont waste time here.

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

Hopes to see some new problems starting with COWs on codeforces!

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

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

Contest after 5 days. So much excited. Good Luck everyone. <3

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

Want to be pupil for the 1st time after so many struggle. Just 14 need..GL & HF .

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

Contest and Ramadan ... Both are enjoyable...

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

Hope this contest can be nice! Good luck for everyone!!

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

500 — 1000 — 1500 — 2000 — 2500 — 3000
After a long time, the score distribution is an arithmetic sequence! Really looking forward to this round!

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

Oh, It's May Day Contest.

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

i wish i would become specialist today. but not sure about it. need rank under 4500 or mostly i do bad in div2 haha.

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

Almost 20k participants... It's amazing!!

Upd. 20k+..sensationally

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

For the first time, I noticed in contest announcement to include You, for participating in thanks giving list. Liked it. You forgot to include yourself in the list. Thanks for your efforts to make the round!

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

2,5 часа — это слишком много, короткие конкурсы — это хорошо

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

here scoring distribution is standard, does that mean there is no difference between the guy who solves faster than other. And how does the ranking is decided? is there any penalty

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

Rip rating

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

How to solve C and D?

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

    For c i used some observations. first sort the given string s. then try to distribute initial k characters for i = 0 to k-1. the remaining string rem = s[k:n] if rem contains more than one distinct char then it is better to add this whole rem to k-1 th string.Then ans = s[k-1] + rem

    if rem only contains only one distinct char(like aaa , bbbbb) distribute those n-k characters equally , (n-k)%k will be remained after that. if (n-k)%k !=0 we need to add an extra character to ans then ans = s[k-1] + rem[0] * ((n-k)/k + ( (n-k)%k == 0 ? 0 :1)) )

    note : "a" *3 = "aaa"

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

what was the TestCase 10 in E

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

Great round and great problems! Your contests are brilliant! I solved AD. I feel D and C should've been swapped. D felt a lot easier tbh. I found D easier than B, which I wasn't able to solve (and wasted more than 40 mins on) :( I was clueless on C after pondering and drawing stuff for 20-ish minutes. Read D, and happened to solve it in about 15-20 mins.

Also, does anyone know how to hack solutions? I locked my problems at around 2:20 and tried viewing other solutions for D, however, none of them loaded. Is it just my internet or servers being slow or am I doing something wrong?

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

Video Editorials for today's C and D

C

D

Enjoy watching!

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

How do you do C? I tried doing casework but miserably failed )):

D was pretty easy for placement though (for those who are more math-minded)

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

    How did you did B it was a lot difficult

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

    For c i used some observations. first sort the given string s. then try to distribute initial k characters for i = 0 to k-1. the remaining string rem = s[k:n] if rem contains more than one distinct char then it is better to add this whole rem to k-1 th string.Then ans = s[k-1] + rem

    if rem only contains only one distinct char(like aaa , bbbbb) distribute those n-k characters equally , (n-k)%k will be remained after that. if (n-k)%k !=0 we need to add an extra character to ans then ans = s[k-1] + rem[0] * ((n-k)/k + ( (n-k)%k == 0 ? 0 :1)) )

    note : "a" *3 = "aaa"

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

Why so much tight time limits for problem E. My code kept giving TLE on test case 33.

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

    I guess they intended to optimise max computation :/

    UPD

    Wait, what? 78729467 78794202 I thought that n*k was the intended solution when I wrote this comment. But yes, indeed harsh time limit.

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

    I guess you forgot to update DP and it calculates each of them too many times.

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

    All of our solutions ran very fast, but I didn't expect a recursive approach. Sorry about that.

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

      So according to your estimate, recursive approach is how much slower than iterative one? this will help me in future.

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

        In general, recursion has a higher constant factor than iteration.

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

        There are some cases when recursive works faster since it calculates fewer states. Anyway, I think the main problem is long long arrays with many modulo operations

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

    Why would you use long longs everywhere and not submit in C++64? Long long stuff run a lot faster in C++64.

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

      I didn't notice that there is a C++ 64 also. I am changing my default to C++64 immediately. thanks for pointing out!

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

    I think your problem are the multiple divisions and modulo operations over k. Since you are keeping red and blue to be modulo k, one easy (and actually faster) way to do this is using an if: if (something >= k) something -= k, ans++; I'm doing exactly what you are doing (actually added a second loop over the blue ones just to be sure) and still passing with the recursive approach.

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

Not sure what I am doing wrong, but my rating is going down rapidly. Nice problems anyway, thanks for that.

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

WOW Nice problems man, specially E and F, both were very tricky and interesting, C was too tricky in my opinion but still it was very nice.

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

Am I the only one who felt D was easier than C? lol

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

Great problem!

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

Problem B was tough, I could not debug C on time. Nice contest.

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

Excellent contest FieryPhoenix! Problem D was especially unique and creative. Enjoyed :)

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

Solved D for the first time in a contest and in the last 30 sec, coudn't be happier :')

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

It was the toughest B for me

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

    All you have to do in problem B is that check if total number of different numbers in array is less than or equal to k if this inequality holds means answer exist and take k numbers from array(include each number atleast once) and print them repeatedly n times .

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

Was I the only one who felt it was most difficult B ever and toughest C to implement?

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

    C was a ton of casework, but if you write out all the cases, then the code is actually not too bad. https://codeforces.com/contest/1348/submission/78683019

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

      nice implementation.thanks for sharing! Good takeaways for me!

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

      You can get away with just 3 cases.

      First sort the string.

      Case 1: The bottom K letters are not all the same. Then the answer is simply the K-th letter from the bottom. Example:s="aabcccdddd", K=3 => answer is "b".

      Case 2: The bottom K letters are all the same, but the rest of the letters aren't. Then the answer is a single copy of the bottom letter, followed by the entire top N-K letters. Example: s="aaabcccdddd", K=3 => answer is "abcccdddd".

      Case 3: The bottom K letters are all the same, and the top N-K letters are all the same. Then the answer is a single copy of the bottom letter, followed by (N-1)/K copies of the top letter. Example: s="aaabbbbbbbb", K=3 => answer is "abbb".

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

Is ans for $$$D$$$ is highest bit set in $$$n$$$

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

    This is what I had:

    int days = Long.numberOfTrailingZeros(Long.highestOneBit(n));

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

      How to construct the answer

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

        What I did is have sum = 1, and count = 1. Important thing to notice is that you can only increase count from 0 to count. Greedily choose highest count you can without going over the limit N across the remaining days which can be calculated with binary search or a simple formula:

        long here = Math.min(count, (n — sum) / (days — i) — count);

        Then it is easy as count += here sum += count

        Then print out here for the current day.

        Do this for every i from 0 to days — 1

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

Earlier round of the same setter FieryPheonix was better than this round Round 621

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

Superfast Editorial thanks

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

I wish the pretests were strong. I was able to solve A,B,C for the first time in Div 2. Thanks for the amazing contest.

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

What is test case 2 of problem C??

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

Great contest,,short problem statements that were easy to understand..

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

Я: так, сегодня контест, надо потренироваться решать задачи на динамику.

Сегодняшний контест:

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

.

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

I made so many silly mistakes, and it caused me a lot of penalties, it is not happening the first time, can anyone plz suggest me some way or something to reduce these mistakes

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

Could you please help me why I got TLE in problem C

my submission:: https://codeforces.com/contest/1348/submission/78744306

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

.

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

Awesome contest..LOVED D....Tricky E...took a lot of time figuring out that it was actually a dp question but it was too late... :-(

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

This was literally the shittiest contest I ever participated in. Such types of problems are not expected to come in contests NO algorithms ONLY if-else based problems which are of no use at all.

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

    Those if else case works are important for logic building. You can't be better by knowing only algorithms without case works.

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

    Algorithms are tools,which help us solve problems.

    Logic is the real thing that every contest should have.

    What will you, and eventually,everyone say if the next contest is Algorithm-only, logicless?

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

      So you mean algorithm based problems are illogical ??

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

        Algorithms-only:If you meet these Algorithms-only Problems, you'll immediately know which algorithm to use.(Sorry, I should declare that)

        Yes, they aren't absolutely illogical, but they only require a little logic

        They should be used as upsolving problems, instead of contest problems.

        UPD: I know that you didn't perform well in this contest. It doesn't matter. Everyone, including me, had some bad performance in the past.Try to perform well next time. If you are not good at logic-thinking, just practice. Practice makes perfect

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

    I feel you brother, bad results are disapointing. But at least you solved B. Welcome back to green!

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

    How could you solve problems D-E-F with if-else based solutions?

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

    Logical,Mathematical,DS and algorithmic questions are the essence of competitive coding.

    Just because there was no DP, graphs or other known algorithmic questions in the first 4 doesn't mean its bad.

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

I really appreciate that you used BABA in your examples, and also using Phoenix(i know its related to your name) reminds me CSGO's Shattered Web Operation, so i felt at home when solving the problems :D, thank you.

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

My greedy solution in E got AC. Most probably it shouldn't pass but I'm not able to break it.

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

Английский вариант F: But before he can take the photo, his friends get distracted by a duck and mess up their order. Русский: И тут вдруг пришли печенеги с половцами и всех переставили.

Как всегда отличный перевод, Дим Юрьич.

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

Why does using Priority queue gives TLE on test case 32 in problem C ? isn't it O(nlogn) which should pass ?

Link to Submission

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

Systests are pretty fast this time.It took less than 45 mins :D

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

**This is my solution for A **78678522

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

Everything was perfect in this contest! Thank you!

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

editorial is out at super fast speed :) nice

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

Java or CPP?

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

In problem C why this code gives TLE on test 8? 78747924

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

What is the meaning of this "checker log : wrong answer Unexpected EOF in the participants output" ? I am getting this in TC2 for problem C.
My submission : Here

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

    Means the validator/checker is expecting more lines(i.e. more test cases or more data, whatever) but your input/output doesn't have any more.

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

      Yes thank you very much.
      I used return in testcases instead of continue, I just realized that(T_T).

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

same code

78704677 compiler: GNU C++17 verdict: WA

78705346 compiler: GNU C++17 (64) verdict: AC

But why??

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

    I too wanna know why this happens, last contest i saw someone shared solution that got AC in g++17(64) and tle in g++17.

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

Editorial published so fast.. Thanks.

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

Did the edge between divisions change? I didn't see participants with rating 1900-2100 in official standings of Div2 round before.

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

I have a problem in the judge of my submission to problem C:

This is my submission inside the contest:

https://codeforces.com/contest/1348/submission/78716961

It gives me TLE in test case 25

After the contest I try to copy and paste the code and submit it again here

https://codeforces.com/contest/1348/submission/78751136

It got accepted that mean it should be accepted in the contest too

What is the problem of this?

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

I've just recived this message from System

Внимание!

Ваше решение 78721802 по задаче 1348A значительным образом совпадает с решениями других участников и находится в группе одинаковых решений try11/78721329, Hadiayoub7/78721802. Такое совпадение является явным нарушением правил. Отметим, что непреднамеренное утечка тоже является нарушением. Например, не следует пользоваться ideone.com с настройками по умолчанию (публичным доступом к вашему коду). Если вы имеете неоспоримые доказательства, что совпадение произошло по причине использования общего источника, опубликованного до соревнования, то напишите комментарий к посту о раунде со всеми деталями. Подробнее можно прочитать по ссылке http://codeforces.com/blog/entry/8790. Такое нарушение правил может являться основанием для блокировки вашего аккаунта или других штрафных санкций. В случае повторения нарушений, ваш аккаунт может быть заблокирован.

and these two accounts belong to me, should I do something about it ?

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

C++17: 78738413 gives TLE C++17(64 bit) :78750670 AC Both of them are same code. Why this happens?

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

Learned Many things today....Thank you

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

Great round, thanks for super-fast rating updates and so well written prompt editorials(with easy to understand commented code)

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

Thankyou for hardwork. As it was said, short and clear statements. A lot of fun to solve. And become candidate master !!

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

A: 78733229 and A: 78665020

B: 78733627 and B: 78706022

C: 78734137 and C: 78731691

are exactly same.

Handle name is also almost same and submission time clearly indicates it's a cheating.

Please have a look FieryPhoenix

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

    submission times indicate that submissions of the first account within the contest, while all submissions of the second account outside the contest time, so I do not think this is a cheating.

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

      It was a 2 hour 30 min contest. So i think all the submission was during contest time.

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

    acts of cheating like this harms the rating of others

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

i passed problem E,but still have questions

i used $$$O(n^3)$$$ dp at first and got tle on pretest 33

then i used a list to optmize and passed

is the complexity right after i optimize the algorithm?

78735089 here's my solution

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

Have anyone noticed that the checker comment in this round is "ok good job (xx test cases)"? Phoenix even makes the checker comment enjoyable:)

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

In my opinion, problem B was more difficult than most 2B's, but it is also one of the more interesting ones.

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

Thanks for the really nice set of problems.

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

ConstructiveForces

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

My O(n^3) dp isn't passing, getting WA in test 33. 78795957
Do we need something like O(n^3/x) to pass. And how can I optimize this?

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

Problem C is not clear. It can have many solution but it is accepting only unique answers.

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

    There are multiple optimal ways to distribute the letters but the answer resulting from the distribution is always unique.

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

Did anyone notice that there are hidden messages in test 31 of problem C?

Contents of test 31

(vcubingx is a YouTube channel. I do not know about the meaning of the other text in this testcase. Can FieryPhoenix provide an explanation?)