| # | User | Rating |
|---|---|---|
| 1 | Kevin114514 | 3722 |
| 2 | Benq | 3676 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3196 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | maroonrk | 153 |
| 2 | Qingyu | 152 |
| 3 | nik_exists | 151 |
| 4 | AmShZ | 147 |
| 4 | maspy | 147 |
| 6 | Um_nik | 144 |
| 7 | Errichto | 139 |
| 8 | adamant | 136 |
| 9 | BledDest | 134 |
| 10 | AksLolCoding | 132 |
|
+40
Dear diari, today I wrote an offence for everyone who worked on a contest for something they can't really influence. I don't know and don't care why admins restricted me from posting, I just want my ability to write toxic comments back. Don't worry, it's just for 48 hours. I hope you will manage to think before doing such things again. |
|
+21
Thanks. My problem. |
|
+17
I like how one person gets their appeal and then immediately the sharks are everywhere |
|
+16
The ultimate not found error |
|
+16
Bump |
|
+13
ACPC will be held from 11 December to 15 December. If you have not yet posted your team information, please do! I wish everyone the best of luck and cannot wait to meet all of you! |
|
+13
Idk. I like my scoreboard. I like the adrenaline rush from being in 30th place for like 20 minutes and then watching as it decays down and down and down while I am hardstuck on E |
|
+12
this introduces unintentional cheating though. You know how people love to discuss about contests the second its over, even for usaco which implements exactly this idea? unfortunately, many people who have friend groups will naturally just know "c is dp" or something along the lines of that because they use discord, which most people use anyways. It works for you because you are not Korean and probably do not have contact with many Koreans, who are the main audience of DOJ, but doing it on a site that you have contact with the people outside of the site makes it inevitable that something will be leaked at some point, and you cant just ignore that completely when you do the contest. Even if you alone can be disciplined enough to not open discord for 3 days, saying that about everyone is far harder to be confident in, unintentional leakage will happen in this scenario, while it cannot in the current scenario (being off discord for 2 hours when you're focusing on a contest vs 3 days is completely different). |
|
+11
N = 4, X = {1, 1, 1, 3}, Y = {2, 1, 4, 1}. Answer should be Draw. |
|
+10
Greedy Approach will not work in this case. Try to map the problem to the House Robber problem. And the reason why Greedy algorithm fails here is because skip doesn't mean a +0 but toggling the authority to someone else for later spendings. |
|
+10
Same qwq |
|
+10
Congrats on 97th* (standings were weird, mb) as a newbie, curious how you did F? I had an idea, but I feel I overcomplicated it too much and was wondering if someone so strong as yourself could explain.
|
|
+9
mambo has probably (hopefully) been temp-banned multiple times |
|
+9
enjoy the ban |
|
+9
nice profile picture |
|
+8
He is not wrong. CP doesn't bring me any benefits at this point. It only helps you in the initial stage of your career, or in your university life, when you are participating in ICPCs. I m past both. I don't have enough time to practice, nor any benefits even if I achieve great things in CP now. Growth is nearly impossible, because I can't practice enough hard problems. At this point I am only doing CP, part of it is stubbornness, mostly it is because of a feeling of emptiness. At this point CP is the only thing I have left that gives me any sense of meaning in life. It is because I can't substitute CP with anything else that gives me the same sense of meaning as CP did once, I can't leave it behind. I don't even enjoy it anymore |
|
+8
If the initial string isn't alternating, then it's always possible to keep the string non-alternating after an operation, provided that $$$n$$$ is even. For simplicity, let's say the string has the longest contiguous span of
|
|
+8
Probably for cheating or suspicious activity, and about using vscode extension alone usually wouldn’t disable an account unless it automated submissions or abused the system |
|
+7
Btw alts are prohibited by rules. |
|
+7
I got the palindrome >:) |
|
+6
Down with weekday contests I can't do!!! I think having a short window can help with the cheating issue a bit, even if people don't deliberately cheat unintentional leakage can still happen |
|
+6
bump!!! contest is in 2 weeks!!!!
|
|
+6
The problems solved in private contests can't be checked without registering for them, so ig it might have been solved in a private contest. |
|
+6
can someone explain H? |
|
+6
it's its username, not nick, mate |
|
+5
Nice contest, here are solution sketches for A-G: A. Simulation, $$$O(l+a+b)$$$ B. Sort the array, and for every block of $$$k$$$ consecutive elements either eat them individually or make juice, whichever is optimal, $$$O(n \log n)$$$ due to sorting C. The answer is YES if and only if $$$n$$$ is even and the string is not alternating, $$$O(n)$$$ D. Right to left DP, store the best possible score for each player (max for Sunny, min for Aubrey) if they are currently on the left, transitions are $$$dps_n = \max(x_n-y_n, 0)$$$, $$$dpa_n = \max(y_n - x_n, 0)$$$, $$$dps_i = \max(x_i - y_i + dps_{i+1}, dpa_{i+1})$$$, $$$dpa_i = \max(y_i - x_i + dpa_{i+1}, dps_{i+1})$$$, answer is based on $$$dps_1$$$, $$$O(n)$$$ E. Binary search on the answer, for $$$m$$$ steps the smallest possible position of Aubrey where $$$y = \lfloor m/(k+1) \rfloor$$$ and $$$z = m - y(k+1)$$$ is $$$(2^y-1)(k+1-z) + (2^{y+1}-1)(z)$$$, $$$O(\log^2 k)$$$ F. Create an auxilliary directed graph of $$$2n$$$ nodes where $$$n$$$ are a "black mode" and $$$n$$$ are a "pink mode" which represent the next edge color you must traverse to keep the path alternating, and check if there is a cycle in it, $$$O(n+m)$$$ G. Sort the array, the optimal set of pictures to choose for a tournament is the first $$$n/2$$$ and last $$$n/2$$$, the optimal order eliminates the largest elements last, brute force on every tournament size, $$$O(m \log m)$$$ Trivial bonus for G: Solve it with update queries Spoiler All possibilities can be checked in $$$O(\log m)$$$ total time with prefix sums so just walk on a sparse segment tree |
|
+5
Guessforces |
|
+5
De Anza College: lifeadventurer henstem nwblanton |
|
+5
I made a short comment on this yesterday, but I decided to ramble a bit more here. I'm assuming from previous comments that I should ping these people to get their attention. Feel free to let me know if I'm wrong: MikeMirzayanov sunbrey Vladosiya I decided to join these contests a couple weeks ago, and this is my second one. I really enjoyed trying to do these problems quickly, but my account Catman6094 was "disabled by administrators" mid-contest. I got no message of any kind explaining what triggered this, and I did not cheat in any way that I know of (I didn't collaborate, plagiarize, or use AI tools in any way). Cheating is completely pointless and takes away from the joy of actually solving a problem for yourself. Cheaters clearly don't understand this joy of problem solving. Anyways I've created this new account to try and get the disabled one reenabled. For reference, here are my solve times, which you can check on my disabled profile:
I was solving E when the account was disabled. Do these solve times seem fast for a new user? I don't know for sure because I'm new to the community, but if so, it should be noted that I have prior experience from the Project Euler community. I got hooked on Project Euler a few years ago, and I've solved 360 problems there over the course of a few years. This experience is how I've been improving my coding skills, and it carried over to Codeforces. I don't like defending myself like this because it feels too much like bragging, but I don't know what else to say. So I am requesting that either my account Catman6094 is reenabled or at least please give me a legit reason for the ban. It is very frustrating to be banned without being given any explanation, because I don't know how I'm supposed to defend myself. I understand the paranoia around cheaters these days, what with AI growing in power, but I hope somebody considers looking into this. Regardless, I have really enjoyed solving problems here for the past few weeks! In this contest, I found the pattern in problem C very satisfying to spot. I love inductive patterns like this one :) I also really enjoyed problem E, but sadly didn't get to submit it during the contest. I will keep solving problems here, but I guess I'll just avoid the contests if this isn't resolved. Thank you and have a good day! |
|
+4
Actually there is a simple solve for F: We can decompose the given graph as follows: a vertex $$$2u$$$ in the new graph will represent vertex $$$u$$$ from the original graph if we reached it via a black edge, while a vertex $$$2u + 1$$$ will represent vertex $$$u$$$ if we reached it via a pink edge. Once the edges in new graph are added correctly, we simply need to check for the presence of a cycle within each component of the decomposed graph (i used translator so sorry if smth is not understandable) |
|
+4
Pre-AI times it was actually quite fun, but now I don't think it's worth it anymore |
|
+4
No? Both are $$$O(V + E)$$$. (Unless you were talking about expensive not in terms of runtime?) |
|
+4
Not to mention clarifications (while they can still be done) are much more annoying with windowed contests. |
|
+4
Consider the information of each node independently, let it be $$$u$$$ and suppose it is the root. Call an $$$i$$$ good if it's the first time $$$e_i$$$ transfers information from the parent to the child, the amount of people knowing the info of "$$$u$$$" is the amount of good $$$i$$$. Note that this sum only changes if we remove one of the good $$$i$$$, and the next time the same edge $$$e_i$$$ appears again let it be $$$j$$$. So the difference after removing $$$i$$$ is just the amount of good $$$k$$$ in the subtree of $$$e_i$$$ originally minus those $$$k$$$ coming from the new $$$j$$$.this gives the idea of dp, let $$$dp_i =$$$ the amount of good $$$k$$$ in the subtree of the edge of $$$i$$$ if $$$i$$$ were to be a good index. we can compute it from right to left and $$$dp_i =$$$ sum of the dp for each node that is direct child of the "child" of $$$e_i$$$.the the answer is $$$dp_i - dp_{i'}$$$ for each good $$$i$$$. Where $$$i'$$$ is the next appearence of $$$e_i$$$this runs in $$$O(NM)$$$ the idea to optimize is noting that each edge has two different orientations. for example imagine an edge like this : when we take anyone above $$$u$$$ or $$$u$$$ as root the subtree of $$$v$$$ is always the same so we can build another dp considering these orientation where $$$dp_{i, \text{flag}} =$$$ is basically the same thing of the aforementioned dp but $$$\text{flag}$$$ is $$$0$$$ or $$$1$$$ defining whose from $$$u$$$ and $$$v$$$ is the "parent" so now we could theoretically go for each $$$i$$$ and calculating how many nodes $$$x$$$ above $$$u$$$ have $$$i$$$ as a good edge. to discover this we can just consider the same dp but in reverse since note that a information going from $$$u$$$ to some $$$z$$$ is the same as rooting in $$$z$$$ and it goind to $$$u$$$ in reverse. So it is just how many nodes $$$z$$$ before $$$i$$$ have edge $$$i$$$ as good minus how many $$$z$$$ before $$$i"$$$ have edge $$$i$$$ as being good (where $$$i"$$$ is the previous appearence of $$$e_i$$$). using some precalculations for nodes we can bring the complexity to $$$O(M + N)$$$ I hope it is clear, feel free to ask questions. |
|
+4
What you're describing is a DAG specialization to the unifying algebraic path algorithm, such as from Fun with Semirings. From A Very General Method of Computing Shortest Paths (in Haskell) The same algorithm over different matrix semirings solves
The Floyd-Warshall algorithm is actually a special case of the matrix algorithm over "tropical" aka plus-min algebras with the semiring addition and multiplication replaced with min and addition. It actually is alluded to in a CLRS 3ed problem. To me it kinda sounds like schizo conspiracy theory stuff, but apparently it is well-known in the literature, covered in The Design and Analysis of Computer Algorithms (1974) by Aho, Ullman, and Hopcroft. No one ever told me about this and I've never seen any CP tutorial cover this, but then again my CS knowledge is limited to basics and this might be too abstract algebraic. I just discovered this when doing a problem on strings, which when order matters I like to model as a FSM, although Project Euler solution threads usually do not model it that way and instead write explicit DP or GFs. In formal language, the Kleene star $$$\Sigma^*$$$ is defined recursively as $$$\Sigma^* = \{ {\epsilon} \} \cup \Sigma \cdot \Sigma^* = \Sigma^0 \cup \Sigma^1 \cup \Sigma^2 \cup \cdots$$$ which represents the set of all finite strings from alphabet $$$\Sigma$$$. You will notice this is a special semiring where the semiring addition and multiplication are union and concatenation. BTW I suggest just dropping the abstract symbols for semiring addition and multiplication and just using $$$+$$$ and $$$\cdot$$$. I think it just makes it harder to read. |
|
+3
I think the other issue might be the live scoreboard — those taking it earlier would have much less information than those taking it later |
|
+3
20% of them are from iran! |
|
+3
For me, a windowed contest (like USACO) is a fundamentally different experience. I think they can have benefits but shouldn't replace existing live contests. |
|
+3
This still brings more benefits to those who take the contest later. |
|
+3
First off, nice solution. Thanks for sharing it. Now, I don't like to post negative comments on blogs that took some work to put out but I just find this one to be too confusingly written and most of the pictures in it to be distracting. It also just keeps on going for some reason. It very well could end after stating lemma 1. A proof for it is barely needed because it's pretty intuitive why it's true (and the argument is overcomplicated imo). The rest of the blog gets into the weeds of maintaining the data structure without first giving any overview of the approach. Any cyan+ coder will find the details redundant if u just gave an overview of the idea. And as much as it gets into the weeds, it does not provide example code... |
|
+3
CumBack |
|
+3
Do you type the monkeys or do the monkeys type you? Truly food for thought |
|
+3
Dripping from my arms and such |
|
+3
I'm sorry, I know I'm too much |
|
+3
|
|
+3
Queueueueueueueueforces. |
|
+3
Now here's my gift for Christmas: GTA 6 in browser |
|
+3
count your days, duyminh |
|
+2
Hello, I restored asap, sorry for that. |
|
+2
My account ilia_rr just got disabled mid contest. Is there an official procedure for appealing the suspension or contacting the administration to have my account reviewed? |
|
+2
Hello, I also participated in the div3 as https://codeforces.me/profile/lydxn, and my account was disabled during contest. None of my submissions were copied or cheated, so I believe it was a wrongful offense. Could you review my account please? Thanks. Vladosiya |
|
+2
holy difficulty |
|
+2
I swear it wasn't there when I first saw it. |
|
+1
what is his rating graph bro |
|
+1
Is this a real div3 contest? |
|
+1
C was a nightmare to guess |
|
+1
What are these names man |
|
+1
"You lack basic critical thinking " -> thats why my IQ is 157 I just alr said in blog that sometimes if im in rage .... its not ur business, pls stop Nowadays, my mental health is not stable, So many cheaters, contests problems... , not reaching goalsin CF ..., couldnt managed to quit CF & grinding qoj.ac ..... and EXTRA random kid saying non-sense |
|
+1
"ps threatening admin to do it again if any action is took. then he is a brat; thats a fact and u shouldnt feel bad if someone says that to u" -> wow, so brats like me should be bullied too !!!! I'm BRAT, poop, useless, larper, idiot, loser, dumb, bastard, bozo, rude, dirtbag, fool, jerk What i did in comments and got warned 2nd warning was for -> negative comments in a contests blog. like "problems are garbage, ai slop problems ......" in all of the 3 comments I criticized the contests problems. u're saying like I did some huge mistake and I should be bullied by community ok from now on i'm brat cuz i wrote criticizing comments !! REPLY FOR THE MSG BELOW: could've written 30+ lines of reason. But in that moment I was barely writing no point on arguing with BRAT like me. u'll gain nothing |
|
+1
I think I arrived at a complete proof. Odd lengthed or alternating strings are bad, so we talk about even lengthed and non alternating ones. Suppose we pick the pair (i, j) and call P = s[0 ... i — 1], X = s[i + 1 ... j — 1] and S = s[j + 1 ... n — 1] Claim: We can force PXS to be non alternating (empty strings are assumed to be alternating) Assume, that s[i] = s[j] = '0' The only way PXS can be alternating iff P, X and S are alternating and X connects to P and S with the same bit before flipping. First, assume that at least one of P and S is non empty. Assume that it is P and S is empty for convenience. The only problematic triplets are 101 and 000. However, 101 is not possible under our assumption because s itself would be alternating in this case. In 000, simply pick any but the middle 0 and the resulting string contains at least one equal and adjacent pair. If both P and S are empty and n >= 4, we can select a suitable same bit from X to reduce it to the previous cases. If X is empty, then there must exist only one pair of 0s and that too adjacent ie only one occurrence of "00". Even in this case, we can reduce the string to an empty one. So, I think the conditions are sufficient. I would be happy to have someone hack this. |
|
+1
I am also talking about induction. I just wanted to prove the sufficiency of the two conditions. Necessity is trivial. |
|
+1
BTW I asked how YOU did F. Not how AI did it for you :) |
|
+1
shahab |
|
+1
SCC is only a bit heavier and gives a bit extra constant factor. though they're the same asymptotic complexity of $$$O(V+E)$$$. i think using SCC is still an overkill though since topo sort is simple. (。・ω・。) |
|
+1
I made it! |
|
+1
The AI you use for cf contests should do just fine at all of those |
|
harder than IOI. |
|
+1
As I stated earlier, previously I only cared about the solve count, whereas now I care about mastering the problem itself |
|
+1
I hope I can solve ABCDE. |
|
+1
Here was my intuition Each compliment resets Aubrey's speed to 1, splitting the game into k+1 blocks where she moves 2^L — 1. Since 2^L — 1 is convex, the block lengths differ by at most 1. By putting shorter blocks first, the minimum is at the end. Sunny only loses the lead once it's length passes floor[log_2 x]+1, so start there and grow blocks layer by layer. |
|
+1
You can view the ongoing contest's scoreboard here: https://competition.binus.ac.id/contest/public |
|
+1
Here is how you can solve E problem. First observation: Distance travelled by Aubrey is of the form $$$2^0 + 2^1 + 2^2 + ...$$$ until she gets flustered (distracted) by Sunny's compliment and starts again like $$$2^0 + 2^1 + 2^2 + ...$$$ adding up to the previous distances traversed by her. Hence we can say that Aubrey's total distance is of the form $$$\left(\underbrace{11111\ldots}_{\text{few times}}\right)_2+\left(\underbrace{11111\ldots}_{\text{few more times}}\right)_2+\left(\underbrace{11111\ldots}_{\text{few more times}}\right)_2+...$$$ and so on. Also the total number of $$$1$$$'s in this expression is the number of rounds for which they have played. Also the number of terms of the form $$$\left(\underbrace{11111\ldots}_{\text{few times}}\right)_2$$$ is equal to $$$k$$$ because $$$k$$$ is the number of times Sunny can compliment Aubrey to distract her. Second Observation: Now let's fix the number of rounds we are going to have. Let's have $$$mid$$$ number of rounds (Binary search is coming). This simply means that we have $$$mid$$$ number of $$$1$$$'s to use in the expression for Aubrey's distance. And talking about Sunny, he would have travelled a distance equal to $$$mid \times x$$$. Our goal is to minimize the distance distance covered by Aubrey after $$$mid$$$ rounds (because we don't want her to takeover Sunny). It turns out that if we divide the $$$mid$$$ number of $$$1$$$'s we had into $$$k$$$ groups such that each group has almost equal number of $$$1$$$'s, minimum value of Aubrey's distance is achieved in the expression of the first observation. All we need to do is to make sure that this minimum value is less than Sunny's final position, i.e., $$$a+mid \times x$$$. (I have not discussed how to divide evenly the $$$mid$$$ number of $$$1$$$'s into $$$k$$$ groups to achieve minimum distance because I want you to think and spend time on this). Third Observation: This is a simple one. If Aubrey can takeover Sunny after $$$mid$$$ rounds, she can do that after $$$mid+1$$$ rounds also. This means that we can binary search on the number $$$mid$$$. This is my code for your reference: |
|
+1
it should have been me! not sunny |
|
+1
You're welcome |
|
0
Would the problem be a deterministic, non-randomized algorithm in the sense that repeated runs of the algorithm we send must return the same value every time? |
|
0
Auto comment: topic has been updated by ICPC_Challenge (previous revision, new revision, compare). |
|
0
Thank you for your quick response! I have two questions:
|
|
0
good luck! |
|
0
Well, yes but aren't you also vighnesh25? |
|
0
yes, are alts not allowed/? nvm i just searched, sorry ig I deserve the ban. |
|
0
really cool |
|
0
wait what are the boundaries though? genuine question bc mambo is a certified racist and he's OK |
|
0
What is wrong with D? |
|
0
It isn't a greedy, it's a dp. |
|
0
Could you explain the math in $$$E$$$ in more detail? How did you derive the solution from the start? |
|
0
OH GOD THIS ROUND TOUCHED ME INAPPROPRIATELY |
|
0
bruh i was hesitant to dp for D cuz div3 D. Thank you for the sols <3 |
|
0
Great contest, unfortunately I ran out of time before I could finish implementing F. Finally Specialist :D |
|
0
L: 1 100 R: 5 5 S will avoid but if it takes to the final result will be better than avoiding |
|
0
We want to minimize the powers of 2 used, so we do our best to evenly distribute the compliment points, 2149F - Nezuko in the Clearing uses the same construction but with triangular numbers |
|
0
I don't know how to use dp to solve D... |
|
0
How do you arrive at that conclusion for problem C? How can we find that invariant? |
|
0
:) |
|
0
My code outputs Sunny for your example |
|
0
Does no greedy approach work for Problem D? |
|
0
The even length is pretty simple as you delete 2 bits every time For the alternating string condition we can see that the operation keeps the string alternating and neither You can keep any other string non-alternating and therefore it will eventually end up as |
|
0
Really enjoyed the questions in this round, sadly didn't do as well as I was hoping to but really liked the story part of these questions ❤️. |
|
0
No, since choosing a smaller number might let you get a better result later on. You need DP. |
|
0
4k people solve d! i think my rating is going to drop a lot |
| Name |
|---|


