# | User | Rating |
---|---|---|
1 | jiangly | 3898 |
2 | tourist | 3840 |
3 | orzdevinwang | 3706 |
4 | ksun48 | 3691 |
5 | jqdai0815 | 3682 |
6 | ecnerwala | 3525 |
7 | gamegame | 3477 |
8 | Benq | 3468 |
9 | Ormlis | 3381 |
10 | maroonrk | 3379 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | -is-this-fft- | 165 |
3 | Um_nik | 160 |
4 | atcoder_official | 159 |
4 | Dominater069 | 159 |
6 | djm03178 | 157 |
7 | adamant | 153 |
8 | luogu_official | 150 |
8 | awoo | 150 |
10 | TheScrasse | 147 |
+101
As a celebration I ate a slice of bread with nutella: Making of nutella bread |
+92
To be fair, most cf users are no smarter than deepseek in this aspect. |
+69
Downvoted. The problem D is the shitest problem I have seen. |
+69
Finally got master! |
+66
Lol, a ratist cyan |
+51
The editorial for D is made for people who have successfully solved the problem in the contest. The editorial is not clear at all ! |
+48
Why guessforces??? |
+46
D>>>>>>>>>>>>>>>>>>>>>E1 |
+46
jeroenodb is definition of perseverance. Congrats on well-deserved LGM sir!!! orz |
+45
Bro lost on Truth or Dare :skull: |
+45
probably just me, but why did D and E both have to be tree problems |
+42
A: Answer is simply initial count of '1' B: Answer is true if and only if a[i]>2*max(i, n-1-i) for all 0<=i<=n-1 C: Do operation 2 and pick the absolute value of sum(a[i]) at this moment, as a candidate answer. Repeat until length of a[i] become 1. The initial sum is also a candidate answer D: Assume a[i] has been decided, then the answer is sum(max(0, a[u]-a[parent(u)])), where a[parent(u)]=0 when u is the root. Then we can find the answer simply by dp E1: For any node u, if there's any other node v such that v is not in subtree of u, and w[v]>w[u], we call u "good node". Then any good node with maximum w[u] could be the answer. F: Sort all pairs such that for all 0<=i<n-1, we have (a[i]-b[i]<a[i+1]-b[i+1]) or (a[i]-b[i]==a[i+1]-b[i+1] and a[i]<=a[i+1]). Then candidate answers will be:
We can find the answer by simple DP. |
+40
Problems on recursion always look for me like "do the exact implementation, as author did". |
+38
As a tester, I confirm that StarSilk is a cat. |
+38
wtf this is something like only green people would post ecept +1000 in rating how to solve *2500 easily, dont say practice |
+34
Guessforces. So helpless when coding. |
+34
Thanks for the nice contest! I definitely had a good start, and I think mainly due to a fast start I got my LGM! Then I got stuck on the other problems, but they were fun to think about. My experience with the problems:
|
+34
I think all problems are very good (at least until F), but putting them together in a single match is somewhat strange. The Gap between C, D/E1, and E2/F are all too big (the number of accepted participants differs by almost 10 times). I was lucky enough to notice the key to E2 immediately after solving E1 and ended up in a good position. Though many participants got stuck in a single problem (C,D,E2,F are all problems where one could easily go wrong and never come back again), which led to disastrous results. It would be better to have an easier D and an easier F. In this case the round would be more balanced and a small mistake wouldn't cause too much damage for a single participant. |
+33
Agreed. It cost me at least 50 mins. |
+33
Over 150 people passed only A,B,C,E,F but can't pass D.(including me) |
+32
We're not beating the speedforces allegations with this one! |
+32
In all seriousness I enjoyed A-C even if they were rather guessable, but there really should have been a problem in between C and D/E1 |
+31
honestly llms are gonna remain good at doing things that are already done. True creativity is gonna take a long time. |
+28
carrot extension is not working anymore? |
+28
guessforces! |
+26
said the guys who's been here for 4 years and solved + 1200 problems but still cyan |
+26
only works cuz he's orz i.e. he should be LGM anyways, he just does this for fun |
On
aberter0x3f →
Redefinition of "Time": a Revolutionary Evaluation System Based on WebAssembly, 47 hours ago
+23
Not really..? Isn't that what competitive programming is? We test our code on how it performs in real life rather than like TCS people do. |
+23
as you'r wish
|
+23
specialists are not allowed to complain. Suck it up ! |
+23
jeroen is just a geniosity tbh |
+22
My screencast (in Rust) will be available once it ends uploading |
+22
I think 800 |
+21
What I did in the contest: Guess A, then passed. Guess B and passed. Guess D and get WA. Guess C and passed. Guess D for another solution and passed. Guess E1 and passed. The contest end. What a terrible experience! |
+20
I noticed that for P4, the difference between a set and ordered set is the difference between 105 points and 120 points. So very weirdly an ordered set would be faster than a regular set in this case. Does someone know the reason for this. |
+20
I have an impropriate analogy about today's C and D. Sorry for any insult. C Problem: Please go to the toilet. I: Went to the toilet and did my business. The editorial: Went to the toilet, washed hands, and went out. D Problem: Please go to the toilet. I: No, I'd skip the problem The editorial went to the toilet and cleaned (ate) up all I had left when I was doing my private things in problem C. |
+20
And the second is like using the gravitation Newton discovered to build a big rocket. |
+20
how to do DIV 2D? |
+20
There should be a row with the average and median. ^_^; I like the variance in predictions |
+19
The edges without cats on them form a tree with a cycle (there are n edges and any node can be reached from any other node). The edges with cats form a directed graph. You need to add some edges from the tree to the directed graph & orient them such that there is an eulerian cycle in it. The condition for a directed graph to have an eulerian cycle is for the indegree of each node to equal its' outdegree and for the graph to be connected when ignoring orientation (except for some isolated nodes). First, remove one of the edges from the cycle so that the tree is actually a tree and solve separately for the 3 cases (omitting it, orienting u -> v, orienting v -> u). Then just process the tree in post DFS order (so, starting with the leaves) and decide what to do with the edge from this node to its' parent (if indegree == outdegree do nothing, if outdegree == indegree-1 add the edge u -> parent, etc). At the end check if the graph is connected and all the degrees match. Answer the minimum of the 3 cases. |
+19
|
+17
as participant i will share you a fact for fun, if you write a number n>=100 and n<=999 and write the same number to it's exactly right, then the new 6 digit number formed will be divisible by 1001. |
+17
how to do p5 T-T |
+17
Bro now we are all GM! |
+15
Solved problem C after 10 tries, thanks to the corner case $$$2\times p$$$ when $$$p >= 3.5 \cdot 10^8$$$ (If $$$n = 2^{a_1}\cdot p_2^{a_2}\cdot p_3^{a_3} ...$$$ then my $$$m$$$ was $$$2^{a_1+2}\cdot p_2^{a_2+1} \cdot p_3^{a_3+1} ...$$$ which was greater than $$$10^{18}$$$) Edit: this solution is a little crazy and unproved, but seems to work. I bruteforce for that $$$m$$$ to find the first $$$a$$$ such that $$$a^{nk} \equiv 1\ (mod\ m)$$$ and $$$nk$$$ is the smallest. when $$$n = 2^{a_1}\cdot p_2^{a_2}$$$ I chose $$$m = 2^{a_1+1}\cdot p_2^{a_2+1}$$$ instead of $$$m = 2^{a_1+2}\cdot p_2^{a_2+1}$$$ |
+15
In Editorial of C :
Fixed |
+15
Considering the fact that I've lost 9,6% of my rating, I don't think this round was that good for me xd |
+14
Bad C. During the contest I used Solution 2 , and it seems that it is much harder than Solution 1. Are you palying brain teasers with us? |
+14
|
+14
jeroenodb OTZ OTL OFZ OLZ ORZ oz osz sto ozz oyz roz hso ost OJZ OPZ <(_ _)> O]L O[Z orx ozk OFX огz лго 口厂乙 ОГZ :weary:rz rto fTO PTO rso fSO stotz :wheelchair:rz |
+14
G and H are also great! |
+13
As a participant, I can confirm that $$$1001$$$ is a composite. |
+13
Here was my thought process: Started with a naive solution (recursion): At each step, we can do one of three things: - Accept the current sum and stop the process - Reverse the array - Replace the array with its diff (as explained in the problem statement). This worked, but is super slow, so let's see how we can optimise it. First observation, since the length of the input array is 50, we can replace the array with its diff at most 49 times (specifically, at most n-1 times), after that, we can no longer make any move. Second observation, reversing the array twice consecutively is worthless, as it will have no effect on the result. From these observation we conclude that we are looking for a sequence of operations such that there is never 2 consecutive reversing, and no more than n-1 diff operations. So it should look something like this: [R,D,D,D,R,D,...] (R for reverse, D for diff). Notice that an R must be followed by a D. Now notice the following: Say we have an array What do you notice? We got the same elements, but multiplied by -1. It means that if doing diff eventually gives us a solution X, then doing reverse then diff should give us a solution -X. So now we can reduce the recursion complexity a lot, because we only need to discover one of the two branches, the opposite branch is just -1 * the first one. Thus, we can simply do the following: At each step, check the current sum, then compute the diff and do recursion to get a return R. Finally, return |
+13
Once a grandmaster, always a grandmaster |
I have also seen the change in his recent codes. He started to solve problems without using large template. I hope his submissions won't be skipped, MikeMirzayanov support him please. ps: i'm his fan, so i often look on his performances/codes. |
+12
On the contrary, I'm surprised that the variance isn't higher, I personally would have rated H < G < E2 (unfortunately, I spent most of the contest debugging my approach for E2). |
+11
As a tester, I can finally say that I TESTED. Really good contest, I hope everyone gets positive delta. |
+11
Certified Pakistani moment |
+11
Shitty blog! |
+11
The first editorial of C is like apple falling on Newton's head. |
+11
The proof for C is this: Let $$$r$$$ be reversing, $$$d$$$ be taking difference, and $$$1$$$ be the identity operation. Then it is easy to see $$$rdr = -d$$$ and $$$r^2=1$$$. So any sequence of $$$r$$$ and $$$d$$$ can be converted to a canonical form $$$r^i d^j$$$ where $$$i\in{0,1}$$$. And for the reverse direction, any $$$d^n$$$ can be converted to $$$-d^n$$$ via either $$$rd^nr$$$ or $$$rd^{n-1}rd$$$, depending on the parity of n. |
+11
hi |
+10
Bump! Current team: jamesbamber and me. |
+10
The problems were really great!! Thanks |
+10
I got ac without stress testing. This means it is not impossible. What's wrong? |
+10
anyone solved E1 using small to large ? |
+10
The editorial for C and D is not very clear. What does fa mean in D? |
+10
5000 when? |
+10
Please don't use symbols that are hard to understand in editorials like in E1 for example: I am really trying to understand the solution, but I can't really fathom it due to them. |
+9
I still don't see the contest. |
+9
No need to binary search. It can be solved with simple knapsack. |
+9
Why? I love this round. My best ever, Rank 5. and the problems had been good. |
+9
That might be a good idea (I've planned to do that before, but usually stick to the actual order, though). Anyway, my advise: always have the number of solves in mind, and, if you can't solve a problem, check the next one. There are cases of contests where earlier problems worth less points are harder than later ones, and you might waste time on a harder problem if you don't notice the difference in the number of solves. Also, sometimes, a problem that's hard for most people might be easy for you, especially if it's based on a topic you're good at. Of course, you should also remember that the number of solves might be affected by other things, like in problems with subtasks. |
+9
Treeforces (and I liked it) |
+9
I feel like the editorial for B is incomplete, especially for beginners. The most crucial part of the solution is that there never exists a part of the sequence that goes: {i...i+1 ...i... i+1} without visiting both ends of the array which allows one to show that the only optimal sequence is one in which we bounce back and forth from opposite ends of the array. |
+9
With dedication, I am at 394 days in a row and I reached CM! |
+9
Sadly i was not aware that if we resubmit a accepted qestion then the time of resubmition will be considered for that problem and my rank droped by 4000. |
+9
Thanks for the excellent contest. Problems D,E and F are all intersting! |
+9
Guys don't be shy give me a clue al least |
+8
is E Binary Search + Dp?? |
+8
damn, i missed it xD |
+8
pretty coolio (too bad i only got it bc my B failed sys tests) |
+8
We have tried our best to create an amazing problemset for all of you to enjoy. Good luck to those willing to participate. |
+8
synthborne orz |
Hope you won't get skipped! Vladosiya and MikeMirzayanov can u help this guy pls, seems he is fair. |
+8
thank you so much for your insights, this will definitely help me. I think I need to work on my strategy also along with DSA, LOL |
+8
glhf xD |
+8
hack: Spoiler 9 8 7 4 1 2 2 3 1 4 2 5 1 6 4 7 1 8 7 9 |
+8
Quite a stupid idea to do so. I dont want to see my account vanished if i ever log in back to this website 10 years later. |
+8
C clearly had more than expected solves in the contest. shame on these cheaters. |
+8
I somehow misread the problem B and thought we need to spend an additional second if we want to reset the clock. Does anyone know if this version of the problem is solvable? |
+8
I hope there was an option to pin a comment! This really helped. Thanks :) |
+7
Agree! I used 1 hour to solve D and don't have time to solve F! (I can solve it in at most 40min) D is totally SHIT. |
+7
As a participant, i hope i can gain non negative delta |
+7
As a blue plant, I totally agree with you! |
+7
Cool problems! How to solve D btw? What I tried After thinking about it a bit, I came to the conclusion that all primes between n / 2 and n are never going to be part of the solution. By observation of about 20 cases and a pseudo proof(which I thought was right), I thought that ans = n — #of primes b/w n / 2 and n — 1. Why should this be wrong? What is the right approach? |
+7
I hope to become CM in this contest. |
+7
@arnabmanna got the 2nd position and @1_2_3_4_5_9 got the 3rd position solving the same problems. @1_2_3_4_5_9 is already known to be a cheater. I discovered @arnabmanna 's profile randomly from a comment on codeforces blog and was quite surprised to see his contest history. In the beginning he participate in 3 div2 round and 1 div3 round. He solved 1 problem in each div2 round and 2 problems in the div3 round. He was getting ranks around 8000-10000. And then in 1 week (from 29th Sept 2024 to 6th Oct 2024) he participated in one more div2 round solving 4 problems and getting a rank of 204. I don't like accusing people without evidence but I think this is good enough evidence to conclude he was cheating. In no world can someone who was solving 1 problem in div2 suddenly solve 4 problems in 1 week time and get a rank of 200 from 8000-10000. |
Name |
---|