cry's blog

By cry, 21 month(s) ago, In English

Hello Cowodeforces :D

Art by chromate00

Proof_by_QED, Lilypad and I are very to invite you to participate in Codeforces Round 993 (Div. 4), which will start on 15.12.2024 17:35 (Московское время). There will be $$$8$$$ problems, with one split into two subtasks, to be solved in $$$2$$$ hours and $$$15$$$ minutes. Participate or you'll have to wait another millennium for a Div. 4 round.

The format of the event will be identical to Div. 3 rounds:

  • ICPC rules with a penalty of 10 minutes for an incorrect submission;
  • 12-hour phase of open hacks after the end of the round (hacks do not give additional points)
  • after the end of the open hacking phase, all solutions will be tested on the updated set of tests, and the ratings recalculated
  • by default, only "trusted" participants are shown in the results table (but the rating will be recalculated for all with initial ratings less than 1400 or you are an unrated participant/newcomer).

We urge participants whose rating is 1400+ not to register new accounts for the purpose of narcissism but to take part unofficially. Please do not spoil the contest for the official participants.

Only trusted participants of the fourth division will be included in the official standings table. This is a forced measure for combating unsporting behavior. To qualify as a trusted participant of the fourth division, you must:

  • take part in at least five rated rounds (and solve at least one problem in each of them),
  • do not have a point of 1400 or higher in the rating.

Regardless of whether you are a trusted participant of the fourth division or not, if your rating is less than 1400 (or you are a newcomer/unrated), you may choose to participate rated or unrated.

We want to express overwhelming gratitude to the following orzosities for making the contest possible:

UPD: Editorial

  • Vote: I like it
  • +317
  • Vote: I do not like it

| Write comment?
»
21 month(s) ago, hide # |
 
Vote: I like it +66 Vote: I do not like it

guys i think we got a bit carried away while writing this contest

»
21 month(s) ago, hide # |
 
Vote: I like it +33 Vote: I do not like it

As a tester, I can confirm that one of the problems was based on Honkai: Star Rail.

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

8 problems in 2.25 hours? time to :cope:

»
21 month(s) ago, hide # |
 
Vote: I like it +26 Vote: I do not like it

As a participant, I hope there are no problems based on Honkai: Star Rail.

»
21 month(s) ago, hide # |
 
Vote: I like it +14 Vote: I do not like it

How can I become a testuwuer?

  • »
    »
    21 month(s) ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    You can message me to be considered, but I usually only accept / reply to people that seem active, promising, and honest on a variety of factors.

»
21 month(s) ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

I think I know what is drawn on that picture. It's Gekko's moshpit on budget.

»
21 month(s) ago, hide # |
 
Vote: I like it +33 Vote: I do not like it

As a tester, I just want to vouch that Intellegent is very intelligent

»
21 month(s) ago, hide # |
 
Vote: I like it +11 Vote: I do not like it

As a tester, I can confirm that there will be eight problems, with one split into two subtasks, to be solved in 2 hours and 15 minutes.

Additionally, I can confirm that each problem will require you to write up to zero or more lines of code.

  • »
    »
    21 month(s) ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Thank you so much for the valuable information! It will be incredibly helpful not only for this contest but for all my future contests as well.

»
21 month(s) ago, hide # |
Rev. 3  
Vote: I like it +33 Vote: I do not like it

As a tester, I was tested.

PS Welcome to CP, Shrek Jr :)

»
21 month(s) ago, hide # |
 
Vote: I like it +14 Vote: I do not like it

As a tester, I don't know what kinda brainrot I just created with the artwork

»
21 month(s) ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

As a tester, the art for this contest is beautiful

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

probably my last contest on cf .hoping for good perf :)

  • »
    »
    21 month(s) ago, hide # ^ |
     
    Vote: I like it +3 Vote: I do not like it

    I analyzed your account.

    Looks like you can reach expert levels in 5 months with good practice.

    Don't leave CP :(

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

As a tester, ChatGPT solves n problems in this contest where n is an integer such that 0<=n<=10

»
21 month(s) ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

As a tester, a few problems of this round took me to nirvana. Hope you enjoy too!

»
21 month(s) ago, hide # |
 
Vote: I like it +13 Vote: I do not like it

As a tester, i have no clue how i got VIP without doing anything

»
21 month(s) ago, hide # |
 
Vote: I like it +20 Vote: I do not like it

is that a lobotomy corporation reference

»
21 month(s) ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

GEOMETRY DASH MENTIONED!!!!11 FIRE IN THE HOLE!

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

After becoming a specialist, this is my first unrated contest in Div. 4. I think it will be fun!

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

we got an orange-ranked lobotomy patient before gta6 thats crazy

»
21 month(s) ago, hide # |
 
Vote: I like it +10 Vote: I do not like it

»
21 month(s) ago, hide # |
 
Vote: I like it -18 Vote: I do not like it

is auhthority from this contest from russia? cuz im taking notes of words btw!

»
21 month(s) ago, hide # |
 
Vote: I like it -23 Vote: I do not like it

what is point of div4 when ChatGPT exists at this point?

I know, I know rule exists however you know

  • »
    »
    21 month(s) ago, hide # ^ |
     
    Vote: I like it +26 Vote: I do not like it

    I don't know why we still have this kind of comment every time. It's about general perception: if we all agree that we must not use AIs during contests, then we just simply need to ignore those who use AIs and don't give credits to them. It's up to the admins how much they can actually catch the cheaters, and there's not much we can do about it. We do contests for our own good, not to perform better than AIs.

  • »
    »
    21 month(s) ago, hide # ^ |
     
    Vote: I like it +12 Vote: I do not like it

    to let those who don't use gpt improve.

»
21 month(s) ago, hide # |
 
Vote: I like it +25 Vote: I do not like it

As a tester, the problems are very skibidi

»
21 month(s) ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

Wow. Another cry round! <3

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

As a participant I will be giving the contest from this account only.

»
21 month(s) ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

Another div 4 where thousands of indians and bangladeshi will be caught cheating

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

cool

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

To every Newbie/Pupil trying to up improve. I wish them All the best.

»
21 month(s) ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

can anybody tell me where i can practice window function questions in sql ?

»
21 month(s) ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

As a tester, I believe this will be the best Div4 ever! Enjoy it!

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

60th comment ;D

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

As a, I can say this.

»
21 month(s) ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Umm, you forgot to mention and orz MikeMirzayanov

»
21 month(s) ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

Wait, how is this emoji or sticker work? I mean how can I use them

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How can I become a legendary Grandmaster?

»
21 month(s) ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

what's the deal with vip and vip+ testers?

»
21 month(s) ago, hide # |
 
Vote: I like it +2 Vote: I do not like it

hehe

»
21 month(s) ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

I think they're very "Aoouhhhh!" to invite us

»
21 month(s) ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

Just became green for a week, hope don't gray back this time :)

»
21 month(s) ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

Can you make div 2 next time

»
21 month(s) ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

hope you all get greens and give your 100% with best wishes

»
21 month(s) ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

Barely eligible (flex) :)

»
21 month(s) ago, hide # |
 
Vote: I like it +2 Vote: I do not like it

what will be the points distribution ? anyone ?

»
21 month(s) ago, hide # |
Rev. 2  
Vote: I like it +1 Vote: I do not like it

As a participant, I hope I can solve the problem based on Honkai Star Rail.

May the journey lead us skyward.

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Only trusted participants of the fourth division will be included in the official standings table. This is a forced measure for combating unsporting behavior. To qualify as a trusted participant of the fourth division, you must:

take part in at least five rated rounds (and solve at least one problem in each of them)

doesn't this kinda defeat the purpose of div 4 contests since most participants are newcomers,and don't really have a lot of experience with contests.

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I need 200 points to reach cyan,I hope i can do it today.

»
21 month(s) ago, hide # |
Rev. 2  
Vote: I like it +1 Vote: I do not like it
Spoiler
»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I'm new and haven't participated in any rated rounds. Can I still participate?

thanks.

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Beautiful art by chromate00!

»
21 month(s) ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

Knee surgery tomorrow

»
21 month(s) ago, hide # |
 
Vote: I like it -25 Vote: I do not like it

As an unrated participant, I wish everyone good luck and a positive delta.

...and for myself, contribution++. :)

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Codeforces Round 1000-7

»
21 month(s) ago, hide # |
 
Vote: I like it -14 Vote: I do not like it

Never cry, and keep Smile ing.

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Out of my curiosity, does Lilypad come from HIMYM?

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

To be honest, it doesn't make sense to have $$$VIP$$$ and $$$VIP+$$$ testers. $$$VIP$$$ already has $$$very$$$ in its name, so why don't you call $$$VIP$$$ testers $$$IP$$$ (important person) testers and $$$VIP+$$$ testers $$$VIP$$$ testers? Because I'm sure the $$$VIP$$$ testers weren't integral to the round's success, even if they might've helped out a bit. And contributing a problem arguably sounds like a $$$VIP$$$ thing, but I wouldn't call it a $$$VIP+$$$ thing.

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hoping the problems to be bit easy unlike last div-4 !!

»
21 month(s) ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

Was hoping that I could solve at least 4 problems but have to settle for 3 problems today :-(

»
21 month(s) ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

As a GeometryDash 4k stars player , I feel sorry that I miss this round :(

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Excellent contest! I really liked 3 of the problems.

(Btw an interesting coincidence, the first problem of this contest is named "Easy Problem", there is another problem on CF of the same name 1096D - Easy Problem, which happens to be the first DP problem I solved in my life.)

»
21 month(s) ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

Nice Div. 3 round

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it
  • »
    »
    21 month(s) ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    How to do G2 ?

    • »
      »
      »
      21 month(s) ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      Make a directed graph $$$i \rightarrow a_i$$$ and another inverted graph $$$a_i \rightarrow i$$$.

      Spoiler
»
21 month(s) ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

That was a real mathforces

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Anyone has a neater solution for D ? I solved it using simulation because it is known that a solution exists but I would appreciate a neater solution.

  • »
    »
    21 month(s) ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    You can simply make every number appearing once in the array, then all of them will be mode.

  • »
    »
    21 month(s) ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    yes just output the distinct element in their first appearance and continue with the normal output in the rest 12345 so on

    1 1 2 2 1 6 3 3 1 4

    1 5 2 7 8 6 3 9 10 4

    output 1 at 1 2 at 2 6 at 6 3 at 3 4 at 4 rest out the normal remaining out of n

  • »
    »
    21 month(s) ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    note that the max value of an array element is n, so keep track of the numbers from 1 to n which dont appear in the given array. now, traverse the given array from left to right, if an element occurs for the first time, add that to the answer array, else you add a number that does not occur. Now every element from 1 to n will appear only once, hence the mode criteria is satisfied

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

For G1 I thought the process to remove the cycles and count the longest chain , such a shame couldn't Implement it in O(n)

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

the moment i pressed submit F contest over :(

»
21 month(s) ago, hide # |
Rev. 2  
Vote: I like it +6 Vote: I do not like it

Problem F was cool; loved it!

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How did so many people solve E? I couldn't come up with even a logic that works.

  • »
    »
    21 month(s) ago, hide # ^ |
    Rev. 2  
    Vote: I like it 0 Vote: I do not like it

    Iterating through all $$$n$$$ and calculate $$$k^n$$$. Notice that you only need to iterate till $$$k^n \leq 10^9$$$, and since $$$k \geq 2$$$, it will be at most $$$30$$$ possible $$$n$$$. Then find the bound of $$$x$$$ for each $$$k^n$$$. 296642769

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

My best performance so far, hope to finally reach specialist (still don't know where my G2 went wrong sadly... could've been better).

»
21 month(s) ago, hide # |
 
Vote: I like it +8 Vote: I do not like it
Why are you TLE on F?
»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Why can't I see anybody's submissions in/out of contest except mine? It says N/A. Please help me out.

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Nice problems F, G1, G2 !

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

why my submission 296750050 gives tle, i am not able to handle overflow may be.

»
21 month(s) ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

296729877 I wrote this program for harder problem and i understand that it has time complexity issues but i have no idea how to make the code more time efficient with the approach I used, would greatly appreciate any help

  • »
    »
    21 month(s) ago, hide # ^ |
    Rev. 2  
    Vote: I like it 0 Vote: I do not like it

    You had the right idea to realize that by simply permuting the order of numbers 1 through N to prioritize the numbers that showed up first. This would result in an array where all of these numbers would be considered as a mode (count == 1).

    I believe the really slow part of the code is the nested for-loop you have for appending the numbers that don't show up because it would run an O(n) search for every number 1 through N, for every index until it fills the array. To fix this, you could have a lastSeen variable to track the last i that you appended to the array, so that instead of looping from 1 through N, you would cut it short to i through N.

    To make it cleaner, you could use sets instead. Create a set (straight from the input) of all numbers that show up in the original array. Use set_difference or similar method to obtain all the numbers that didn't show up. Then, combine these two by appending the second to the first while maintaining the order of the set. That way, you don't have to spend O(n) every time you test for whether a number has already appeared.

    Hope this helps! :)

    P.S. Here's my submission and implementation of the above. It's a bit messy though since I'm a noob :P 296684484

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

when ratings would be given for this contest???????????

  • »
    »
    21 month(s) ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Edu-style rounds (including Div 3 & 4) will go like this:

    • Coding phase
    • Open hacking phase (12 hours)
    • (a few hours break)
    • Rejudging (all solutions are rejudged with hack inputs)
    • (a few hours break)
    • Ratings are updated

    When ratings are updated, the "RATING CHANGES" link is added to the contest standings page. If there's no such link, the ratings are not updated yet. Just wait until the ratings are updated.

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I have a doubt will this contest will be rated for me or not ? I have a contest rating of 750 ..? The contest is completed but my rating is not updated why ?

»
21 month(s) ago, hide # |
Rev. 7  
Vote: I like it 0 Vote: I do not like it

First blog in which there was not a thanks to MikeMirzayanov

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

would the newcomer have rating???

  • »
    »
    21 month(s) ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Newcomers and those who have <1400 rating will be rated. Just wait.

»
21 month(s) ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

Could anyone help me with my code? https://codeforces.me/contest/2044/submission/296745472 Codeforces said it has runtime error on test case #10 . But when I try the code and the test case #10 on my pc, also on ideone ( https://ideone.com/eVDhX0 ), I found no error. Is there a fix for my code? I just can't find the error.

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

fire in the hole

»
21 month(s) ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

At first, I apologize for registering an alt. But it's an necessity because my account transparent_heart was banned while participating in the Div. 4 contest.

And I can't send message to cry.

Hi cry, I participated in the Div. 4 contest yesterday. The problems were awesome and I really enjoyed the contest. What's more exciting was that I was on the first page of the standing! I really appreciate you and other authors as well as the coordinator for preparing such an fantastic contest!

However, everything changed at the time I submitted my solution of problem F. I'm really shocked that I was banned! I don't know why. I should have been reached my best performance but now my account is disabled!

All the idea is from my mind and the code was written by myself. You can see my submissions to prove it.

Do you know the reason why I'm banned? I just want an explanation because that account is very important to me. I VPed 30+ contests using it!

I may be a little radical. Please forgive me. But I'm really frustrated and confused. Sorry :(

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I have entered rated in the contest but still my rating in contest is showing N/A can any editor have look on the issue?

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hey @cry , @vgoofficial, @Lilypad Question D my python code runs in O(N) however it gets a TLE after hacking while the same code in C++ got accepted Is there anything I can do about this ?

~~~~~~~~~~~~~~~~~~

tests = int(input()) for _ in range(tests): n = input() arr = list(map(int, input().split())) # print(arr) # future = set(arr) ans = [] nums = set()

for item in arr:
    if item not in nums:
        nums.add(item)
        print(item,end=' ')

for i in (set(range(1, len(arr) + 1))-nums):

    print(i,end=' ')

print()

»
21 month(s) ago, hide # |
Rev. 15  
Vote: I like it 0 Vote: I do not like it

How is it possibile that I got accepted during the contest on problem F and now it gives me TLE on test25. I wrote the solution with the maps and also in the editorial it is a optimal solution for this problem.

Using unordered_map instead of map change the result to accepted. If during the contest it would have given me TLE I would have changed it and got accepted. It doesn't seem fair.

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

296865335 296893248 The two are very similar codes and I feel they are actually the same but the give a very diff runtime with the first working in 2s and the second in 4s , what might be causing that ?

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Guys, its me.

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

WATER ON THE HILL!!!!!!!!

»
21 month(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I'd like to ask a question. If my submission is found to be plagiarized through the plagiarism check, will it be counted as zero solved questions for scoring, or will the results of this competition be directly removed? After my submission was found to have plagiarism issues, more than 100 points were directly deducted from me. Is this a normal phenomenon?