Codeforces Round #905 (Div. 1, Div. 2, Div. 3)
source link: https://codeforces.com/blog/entry/121579
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Hello, Codeforces!
We are happy to invite you to our experimental round for three divisions, which will take place at Sunday, October 22, 2023 at 11:05UTC. Please note the non-standard start time for the round. Each division will have 5-7 tasks. The round will be held according to the Codeforces rules and will be rated for all three divisions. A few changes regarding the ratings of participants in this competition:
- In Div.3 the rating of participants is less than 1600.
- In the Div.2 ranking, participants range from 1600 to 2099.
- In Div.1 the rating of participants is no less than 2100.
- Please note that after Codeforces Round 904 (Div. 2) the rating will not be recalculated until the end of this competition.
Let us note that two team Olympiads will be held in parallel on this day and the rounds are based on their tasks:
- XXI Moscow Team Olympiad, high school students competition based in Moscow that is an elimination contest for All-Russian Team Olympiad.
- III Open Team Olympiad UMSh in programming.
We would like to thank everyone who helped me a lot with round preparation.
We wish you good luck and high rating!
UPD: One of the problems will be interactive, so please read guide for interactive problems before the contest.
UPD: Score distribution:
- Div.3: 500−1000−1500−1750−2500−2750−(1750+2000)500−1000−1500−1750−2500−2750−(1750+2000)
- Div.2: 250−500−1000−(750+1250)−2250−2750250−500−1000−(750+1250)−2250−2750
- Div.1: (250+500)−750−1000−1250−2000−2750(250+500)−750−1000−1250−2000−2750
UPD: Editorial
UPD: We will retest the solutions to the problem div3F and div2C. This may make minor changes, the rating will be recalculated later.
UPD: Retesting took several minutes. Now all the results are correct :)
2 months ago, # | As a tester I tested the round and it was a fun one! |
2 months ago, # | "Please note that after Codeforces Round 904 (Div. 2) the rating will not be recalculated until the end of this competition.". Does that mean that our div in round 905 will be determined by rating before round 904? |
-
-
If one's division changes after round 904, will round 905 be unrated for him?
-
2 months ago, # | As a tester I recommend you to read all the problems |
I'm proud to be a tester of the first div123 round on Codeforces ever, and I recommend you participate in it |
2 months ago, # | As a tester I can say only that the tasks are really interesting and well-balanced! Don't forget that it is the first div123 Codeforces round ever, so why not to participate in it? Good Luck! |
2 months ago, # | Is Div 3 will based on ICPC like prevoius Div 3 round or rather it will follow Div 2 Pattern |
2 months ago, # | I am a tester. |
2 months ago, # | Finally standard rule of Div3 and 2100+ Div1! Exciting! |
2 months ago, # | May be we could soon see (Div1,Div2,Div3,Div4) happening at once just like this. |
-
it'll be really weird though, since div 3 would just be clash of specialists
2 months ago, # | First time div 1,2,3...... 1600~2099 div 2Hopefully it will be interesting.. |
2 months ago, # | It isn't a good idea for 2 contests on the same day. Because #905 is based on a competition, maybe we can move #904 to another day? |
2 months ago, # | Thats so cool. Good luck everyone and hope we will get our rating up! |
2 months ago, # | i can register on both div 2 and div 3. What if i spam wrong solution on div 3 then submit the right one on div 2? |
2 months ago, # | I have a 50% chance to wake up early enough for this contest :) |
2 months ago, # | Looking very interesting round, the first Div.1,2,3 contest on codeforces. Good luck to everyone! |
2 months ago, # | The average strength of the opponents will be very high in this Div1, and I'm very afraid. Should I participate in? |
2 months ago, # | So for the first time div 3 won't follow icpc rules. Very interesting |
2 months ago, # | Score distribution is so weird. |
2 months ago, # | does each div have questions that are on other divs? like is div3G the same as div2D and div1A ? or each problemset is unique |
2 months ago, # | So why is there a 3 problem difference between Div.1 and Div.2? Is it because purples are now in Div.2? |
For Div1?2?3?Or for all Div 1,2,3? |
2 months ago, # | this is a historic moment |
2 months ago, # | First ever Div 2. that I've not been able to participate in because of my rating :/ |
2 months ago, # | Being related to Olympiads, will these rounds be highly mathematical? |
2 months ago, # | I don’t understand if div3 will be rated for me if I raise the rating to div 2? |
2 months ago, # | “Please note that after Codeforces Round 904 (Div. 2) the rating will not be recalculated until the end of this competition.” Does that mean even if I become Master now I should still participate in Div.2? |
-
You can't become master before round 905, because we will calculate ratings for both 904 & 905 only after 905's end.
2 months ago, # | So excited for this contest. Best of luck everyone... |
2 months ago, # | After this round ends and the round 904 rating is calculated, will the seed for calculating round 905s rating be based on the final rating after 904? Or will both of these be calculated in parallel and added to current rating? |
7 weeks ago, # | I wish I can AK!!! |
7 weeks ago, # | I hope my picture becomes reality... <3 |
7 weeks ago, # | One of the best contests i have ever had :) |
7 weeks ago, # | Was it just me or div2 A seemed harder than usual and div2 E was easier than div2 D? |
7 weeks ago, # | Seems like a good system going forward, let's keep using this for future rounds. It should also deal with rating volatility better IMO. Maybe even div2+div3 rounds when we only have a div2. |
Guys, please help. My solution on D3E fails on 4th test. Can anyone spot the mistake? 229288636 |
7 weeks ago, # | rip, didn't see you could reorder in D1. It's a very easy problem for its position |
7 weeks ago, # | Can we not make round 2h for absolutely no reason? Ok thanks. |
-
2h is the normal round duration... Can we not make rounds longer for absolutely no reason?
7 weeks ago, # | statment in Div2D is really confusing for me |
how can i improve myself??? in todays DIV3 i got stuck at the first question itself,,how to improve myself?? |
7 weeks ago, # | I am getting TLE in pretest 6 for problem E — Look Back, can someone please look at my submission and tell me why? Cause at max the T.C. will reach |
7 weeks ago, # | Thanks for the great contest! gonna hit expert this round :) |
7 weeks ago, # | couldn't anyone explain, why in the last example test, answer is 28? Div2, C |
-
Make sure you are not double counting the same segments. (I was getting 26 instead of 28 in the last test of pretests).
Segments [1;2], [1;4] — [3;4], [1;5] — [4;5], [9;10], [8;10] — [8;9], [7;10] — [7;8], [3;10] — [3;4] are bad segments, plus amount of repeating numbers (segments of length one) in total equal 29, but actually I double counted segments
7,2
and7,2,3
, so the amount of good segments is 28.Basically if you have 2 repeating numbers somewhere in your array, a good segment can't end at the repeating number that comes before, and can't start at the repeating number that comes after
7 weeks ago, # | |
7 weeks ago, # | Can you someone give some hints on how to solve div3 D?? dont know which data structure or approach to take.. |
-
This is how I solved it. Maintain a multiset of all left borders and a multiset of all right borders. For each query binary search on the right border, if there exists a right border greater or equal to the current middle value of binary search and there exists a left border strictly greater than the found right border, the answer is yes. If you dont find such right border, the answer is no; Submission: 229250762
-
Yeah, so basically you can maintain two multisets
starts
andends
, then for every operation ifstarts.size()
(orends.size()
) is<2
, the answer isNO
, otherwise we can check thatmin{end} < max{start}
(think about why this works by drawing intervals on a paper or something), if this is true then the answer isYES
, elseNO
.Here is my submisison for reference.
7 weeks ago, # | Nice contest, I almost made it to E, and now we have to wait one more week till the next div2 TT. |
7 weeks ago, # | Div2 C >>> D1, D2 |
7 weeks ago, # | I found the hacking system is much more enjoyable in this Div1+2+3. In the past div2 rounds, I often found participants in my room only solved A, and there is not much to do, but in this round there are 3 participants in my room solved A-E and many others solved A-D. Maybe CF should consider arranging participants with similar rating in the same room in the future rounds? |
7 weeks ago, # | Maybe Div2 D1/2 is much easier than Div2 C , only in my opinion. So I think take part in Div1 is a better choice for me,probably. But I'm quite far from Master. :( |
7 weeks ago, # | Problem difficulty in Div1: B < D < C < A. |
7 weeks ago, # | can someone help me with the logic for the div 3 B question? i used min deleions to make string palindrome and then checed it with k if equal then yes else if less than no if k > then it then there are cases which i figured and wrote them but it fails pretest 2 |
7 weeks ago, # | One of the most intense contests in my life |
Thanks to the authors for having
Here is my advice about the problems (div2) :) A B C D E Overall I think that it was a good round! I'm looking forward to another russian olympiad round :) |
7 weeks ago, # | Don't use unordered_map without custom hash... lesson learned |
7 weeks ago, # | By the way, I wonder what are people's opinions about the format of cf rounds. I think that it was pretty cool having div1, div2 and div3 separated to make the problemset more adapted to each division. However, I think it would be cool to make the contests at bit longer, like 2h or 3h to avoid having one or two problems that are mostly solved by alts/new accounts and not tackled by others. |
-
I think a separate division for expert + CM should be used more often in the future because it makes the experience a bit more enjoyable for people in those rating ranges (e.g. less complacency at the end of contests).
But I think maybe in such cases we should set problem A to be the difficulty of a typical div2B, problem B should be like an easy div2C (1400), etc.
-
As a Div1 participant, I like this format rather than usual(Div1,2).
- We can reduce the number of easier problems and make a time to tackle hard problems during contest (without extending the length of contests)
- Soften the nightmare rating drop of very bad performed contests
- More hacking attempt opportunity. Increse the number of participants who PT-passed harder problems in the same room.
7 weeks ago, # | anti-unordered system tests? That's not very nice is it( |
7 weeks ago, # | It seems that problem F in this round is just the same as this problem. Is this just a coincidence? |
7 weeks ago, # | Pleasant limits in div2C. Nice day to the author for impeccable time limits and wonderful pretests!
|
-
Kinda same thing, still don't understand what happened. Curious if somebody can clarify why did that happen. (ExTrEmE AmoUntS of ClariFiCation is required) 229253714
-
In C++ unordered structures use default hashes unless you explicitly replace the hash. For int default hash is just int's value, so if you add a lot of elements with the same residue over some known modulus, the operations will start taking linear time and the solution will get TL. Didn't expect the authors to inlcude such tests though
-
-
I found an argument suggesting people should use
unordered_*
with extra care on CF: https://codeforces.com/blog/entry/62393It is possible that Test 17 is a hack.
-
Div2C(Div3F) has testcases for anti-unorderd_map for C++. For example, testcase16 contain only
107897 * n
as follows.1 107897 215794 323691 431588 539485...
7 weeks ago, # | Div3 E: https://ideone.com/whDTDf Does it gives wrong answer because I updated the values in the array, so it overflows, or this is not the reason ? |
7 weeks ago, # | why does a basic while(a[i-1]>a[i])a[i]*=2, count++ not work? Please give a tc where this fails. also what's the intended solution? |
7 weeks ago, # | I am very grateful to the authors for choosing a very good slot (for timezone +8) for the round. |
7 weeks ago, # | I solved problem A in div3 correctly (that was the only problem I solved, and my only submission) but got my rating reduced by 65, pls does anyone know why this could have happened? |
7 weeks ago, # | I don't think Codeforces current rating system is compatible for conducting Div 1 + 2 + 3. As number of participants is much less in Div 2, as compared to other rounds, as expected rating update is very peculiar on the normalized same rank. |
7 weeks ago, # | Got FST on div2C for using The purpose of hacks has become that of giving a few people easy points by breaking hash-based solutions, and nothing more. No one would argue that this is a positive thing, and Codeforces really doesn't shine when allowing this sort of unfairness to happen on the site. |
7 weeks ago, # | Thanks guys for the contest! Problem Div3B made me spend lots of time, luckily solved it after problem C! |
7 weeks ago, # | Due to significantly low number of participants in division 2 , The rating changes were not satisfactory : ( |
7 weeks ago, # | Just a little personal opinion. It's clear that contestants who've solved problems [A-D2] in Div.2 have the capability to solve all problems in Div.3. For those who solved all the problems in Div.3, their performance score is greater than 2100. We can see some Experts (who got promoted from the last contest so they can participate in Div.3) receiving a +150 delta. However, those contestants in Div.2, if they solve D2 at the same speed, would only get around an 1800 performance score. Some Experts might even see their rating dropped. I think this seems a bit unfair. I'm not saying that the contest was bad; the problemset was excellent! |
-
I think this problem is already present in div1/div2. There are some rounds where almost everyone in div1 solves div1AB but in div2, barely anyone solved div1B (maybe because an earlier problem was annoying or something). Then a low CM in div1 who solved AB would maybe get negative delta but in div2 he would have gotten huge positive delta.
7 weeks ago, # | I am just wondering if someday there will be parallel div-1/div-2/div-3/div-4 contests. |
7 weeks ago, # | Thanks for both of the contests :D A good day for me, gaining 200+200+ delta! |
7 weeks ago, # | great contest, had a little mess up on E & g2 I really like it when the number of alts is reduced due to most of them attending from their main bcoz of div1&2&3 |
7 weeks ago, # | This was my first Codeforces Div 3 contest. I solved three problems and gained some rating. However, when I checked back in the evening, my rating was gone, and the contest had become unrated. Can you help me understand why this happened? |
-
They rolled it back to check solutions for plagiarism, everything will return after some time.
7 weeks ago, # | why this contest was unrated for div3 |
7 weeks ago, # | In Div2C / Div3F, What is the intuition behind the below statement?
|
-
suppose that you have the l r of the subarray, when does this subarray can be reproduced as a subsequence if and only if the first value (or more with the right order) are with index <l (the same logic with the end of the subarray for index>r) we can think about the first and the end of the subarray (to lessen the cases)
Maybe I'm the only one using segment tree + lazy prop in div3D LOL. |
7 weeks ago, # | nice problemsets! really challenging and interesting, RP++ |
can any one tell why this submission 229370372 is giving WA on testcase 2 for div2D2. |
-
5 4 12 17 11 16 20 9 8 6 4
For above testcase, correct answer is 12. Your code is giving 15.
6 2 20 12 6 10 10 15 16 8 8 14 15
For above testcase, correct answer is 2. Your code is giving 5.
Happy debugging!
7 weeks ago, # | Can someone please help me in identifying what issue in my code for Div3 D is? 229445451 The code in comment is working correctly, but the current code is not. Thanks in advance! |
Where is the information about icpc challenge? The button in the main menu links to an empty page... upd. the issue is resolved |
7 weeks ago, # | Why the answer to 4th Example test case is 7 in Problem F[problem:1883F] Div 3. According to me it's 8. The segments are {3},{1},{2,3},{3,2},{2,1},{2,3,2},{3,2,1},{2,3,2,1}. So there should be 8 segments. |
I have recently got a plagiarism notification for question 1883-D. The solution which I submitted was a pretty generic solution. It coincidentally matched with some other participant (Shivam_Jha) who even had a similar template like I have. In fact many other participants and even the editorial had a similar (almost same) solution. I am attaching some similar solutions that I have a found. Other similar solutions: 229297769 229325508 229223552 As far as the template part goes, we have been using this similar template for over a year now. |
4 weeks ago, # | Hello Codeforces, I had a message 2 days ago which stated that "Your solution 229220289 for the problem 1883A significantly coincides with solutions 2020331050/229210728, dingD0ng/229220289" & "Your solution 229220793 for the problem 1883B significantly coincides with solutions 2020331050/229219928, dingD0ng/229220793" & "Your solution 229254178 for the problem 1883C significantly coincides with solutions 2020331050/229253641, dingD0ng/229254178". First of all I want to apologize as I was completely unaware of the rules and guidelines. I confirm that both of the accounts are mine and I made the same submissions during the "Codeforces Round #905(Div. 3)" contest for both of the accounts. I'm extremely sorry for my action. It was unintentional from my side. I'll be careful from now on. This type of incident won't happen again. |
3 weeks ago, # | It was a nice round! Congrats to all participants! |
Hello, Codeforces. I managed to solve 5 problems in this round. But later Codeforces algorithms found my solution to the D1 problem similar to another solution. I looked — yes, the solution is almost identical. You can make sure that the solutions are indeed similar: https://codeforces.com/contest/1888/submission/229228883 — my code, https://codeforces.com/contest/1888/submission/229262126 — someone else's code. But I would like to challenge the decision to write off. Firstly, I do not know the person who owns the second code. Secondly, I think that copying so close to the source code is stupid, since there is a check for cheating. Thirdly, task D1 is a problem with an obvious solution. If solutions to problems where it is necessary to derive a formula are not banned, then why is the task where it is necessary to write a standard bin search for O(nlogn) banned? I hope for an individual consideration of this case. Good luck to everyone! |
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK