| # | User | Rating |
|---|---|---|
| 1 | Benq | 3857 |
| 2 | jiangly | 3810 |
| 3 | maroonrk | 3534 |
| 4 | tourist | 3528 |
| 5 | Kevin114514 | 3510 |
| 6 | turmax | 3411 |
| 7 | Um_nik | 3387 |
| 8 | Radewoosh | 3367 |
| 9 | heuristica | 3322 |
| 10 | strapple | 3317 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | maspy | 150 |
| 3 | Um_nik | 146 |
| 4 | Errichto | 139 |
| 5 | adamant | 136 |
| 6 | maroonrk | 134 |
| 7 | DNR | 133 |
| 8 | Dominater069 | 131 |
| 9 | Proof_by_QED | 130 |
| 9 | AmShZ | 130 |
|
0
Based |
|
+4
Baraa-Ahmed will win IOI 2026 |
|
On
ismailfateen →
There is no 100% effective solution to cheating, so stop complaining and start adjusting., 7 weeks ago
0
Flushed kber |
|
0
Auto comment: topic has been updated by TAhmed33 (previous revision, new revision, compare). |
|
+15
contee will win IOI 2026! |
|
0
Mina we love you |
|
+3
Everything here is concerning the Egyptian Olympiad in Informatics (EOI). A:
B:
C:
D:
|
|
+8
Strong! |
|
0
How is "Sequence Decomposition" solved? |
|
0
How does the dynamic connectivity trick solution work? |
|
+38
Unfair for the people in such a country who don't cheat. Don't generalize |
|
0
Deleted |
|
+5
This is. |
|
+16
Way too strong |
|
+9
Strongest team |
|
+27
G trash casework solution: (Good means a string which can be reduced to "1") 0000: Only good is "1" 0001: Only good is all '1's 0010: Good if "1" or starts with 10 or (starts with "11" and has at least 3 1s) 0011: Good if starts with '1' 0100: Good if "1" or ends in "01" or (ends in "11" and has at least 3 1s) 0101: Good if ends in '1' 0110: Good if odd number of '1's 0111: Good if at least one '1' 1000: Bad if "0" or "01" or "10" or "11" or "000" or "101" or "111" 1001: Good if even number of '0's 1010: Bad if "0" or "01" or "11" 1011: Bad if "0" or "01111..." 1100: Bad if "0" or "10" or "11" 1101: Bad if "0" or "...111110" 1110: Bad if "0" or "11" or "101" 1111: Only bad is "0" |
|
0
Can my A be judged please? It is still at "pretest passed", and my position in the standings does not include my points on problem A Hamed_Ghaffari sweetweasel eren__ https://codeforces.me/contest/2127/submission/332803312 Update: Thanks for the help |
|
+10
So ignorant... |
|
+65
Do you plan on getting a life after these last few months? |
|
0
Yeah, I am sure that the 250 million people in Pakistan are all complicit in the hate crimes. I'm sure the four guys in the IOI team are willing to engage in these hate crimes. I'm sure that insulting them and calling them terrorists is the right thing to do |
|
+5
This comment is a great display of your ignorance |
|
+3
How does that justify making racist comments about a country's IOI team? |
|
+15
Egypt's team:
|
|
0
Eid mubarak! |
|
0
How to get a non-40 score in problem E? |
|
+10
Why is this downvoted |
|
+11
mandatory Wxssim gupta_samarth orz |
|
0
orz only 100 on Problem 6 |
|
0
Well, thanks for bumping my message! |
|
0
How to get more than 78 in problem E? |
|
0
I wasn't involved in the trolling done, and I never supported it. The people behind the troll account have since reformed :) |
|
+32
|
|
+39
|
|
0
Any hints for problem E? |
|
+20
TLE orz |
|
+3
The main difficulty was reducing the condition in the statement to $$$a_j \nmid a_i$$$ if $$$j \mid i$$$ I knew that this condition was necessary, but in contest I just guessed that it was sufficient and proceeded based on that. I'm pretty sure many others did the same. |
|
+36
|
|
On
ilove_sundarKanya →
A Blunder That Stopped Me From Being a Pupil (sqrt DANGEROUS!!!), 21 month(s) ago
+3
I saw this trick a while ago, and I think it is the safest option. |
|
M to IM to GM in two consecutive contests, inspiring! |
|
+22
Yeah that's sad. I think it is a good problem otherwise |
|
+5
Bump |
|
On
elizabeth_zou_fanboi →
Among permutations of length N, how many satisfy |a_i − i| ≠ K, 22 months ago
+12
I have a solution with inclusion-exclusion. For some permutation $$$p$$$, let $$$x$$$ be the number of indices $$$i$$$ with $$$|p_i - i| = k$$$. Let $$$f(i)$$$ be the sum over all permutations of $$$x \choose i$$$. The answer is $$$\sum_{i=0}^{n} (-1)^i f(i)$$$. To compute $$$f(i)$$$, you can count the number of ways to choose a subset of indices of size $$$i$$$, and assign $$$p_i$$$ values to it such that all indices $$$i$$$ in the subset satisfy $$$|p_i - i| = k$$$, and multiply that by $$$(n - i)!$$$. You can compute a dp for each residue class modulo $$$k$$$, and then merge the answers of each residue class. Is there a more simple solution? |
|
On
wuhudsm →
Invitation to TheForces Round #37 (Brute-Forces1, TheForces Rated, Prizes!), 22 months ago
+3
Lol your original comment was correct |
|
On
wuhudsm →
Invitation to TheForces Round #37 (Brute-Forces1, TheForces Rated, Prizes!), 22 months ago
0
How to quickly recompute $$$f(p)$$$ in problem G? |
|
+14
I think Omar was included in the screenshot by mistake. He didn't submit anything. Also, your last sentence makes no sense. Does that justify cheating somehow? |
|
+20
Sum of $$$d_i$$$ is always $$$0$$$, so there always exists a solution for an input. |
|
+14
They will get destroyed by the competition. |
|
0
No I love Abito more |
|
On
ArvinCiu →
Codeforces Round #977 (Div. 2, based on COMPFEST 16 — Final Round) Editorial, 23 months ago
+20
Assume the optimal subset for a value of $$$k$$$ is not a prefix of the sorted list of leaves. Let $$$x$$$ be the first leaf in the sorted list not chosen. If $$$h(x)$$$ has no chosen leaf in its subtree, replacing $$$x$$$ with any chosen leaf after it in the sorted order is obviously optimal. Otherwise, let $$$y$$$ be some chosen leaf that comes after $$$x$$$ in the sorted order, such that $$$lca(x, y)$$$ is lowest possible. Let $$$z$$$ be $$$lca(x, y)$$$. Notice that $$$h(x)$$$ must be an ancestor of $$$h(y)$$$, as we said that $$$x$$$ is the first leaf not chosen. $$$z$$$ must also be a strict ancestor of $$$h(y)$$$. This means that the sum of values from $$$x$$$ to $$$z$$$ must be at least as small as the sum of values from $$$y$$$ to $$$z$$$, so choosing $$$x$$$ instead of $$$y$$$ is optimal. |
|
On
ArvinCiu →
Codeforces Round #977 (Div. 2, based on COMPFEST 16 — Final Round) Editorial, 23 months ago
0
Isn't this the same as my solution? I just preprocess the part of splitting over largest edge |
|
On
ArvinCiu →
Codeforces Round #977 (Div. 2, based on COMPFEST 16 — Final Round) Editorial, 23 months ago
+170
My solution to E3: Call a node "special" if it is one of the $$$p$$$ given nodes. Call a node "chosen" if it is one of the $$$k$$$ nodes in the chosen subset. Build the Kruskal Reconstruction Tree (KRT) of the graph, with $$$2n - 1$$$ nodes. All nodes in the original graph are given the same label in the KRT. For some special node $$$x$$$, let $$$y$$$ be the lowest ancestor of $$$x$$$ in the KRT with at least one chosen node in the subtree of $$$y$$$. The maximum edge weight needed to get to a chosen node from special node $$$x$$$ in the original graph, is the weight of the edge that corresponds to $$$y$$$ in the KRT. I then transformed this problem a bit. Let $$$f(i)$$$ be the edge weight that corresponds to node $$$i$$$ in the KRT (if $$$i \leq n$$$, then $$$f(i) = 0$$$). Let $$$g(i)$$$ be the number of special leaves in the subtree of $$$i$$$ in the KRT. Let the the value of a node $$$i$$$ be $$$g(i) * (f(i) - f(par[i]))$$$. Choose $$$k$$$ leaves in the KRT, to minimize the sum of values of nodes which have at least one chosen leaf in its subtree. This works, because the contribution of some special node $$$x$$$ will be $$$(f(y) - f(par[y])) + (f(par[y]) - f(par[par[y]])) + \dots = f(y)$$$, where $$$y$$$ is the lowest ancestor of $$$x$$$ with a special node in its subtree. Greedy solution Construct the subset of leaves one by one. Keep choosing the leaf which will have the least contribution. To simulate this quickly, let $$$h(i)$$$ be the highest ancestor of leaf $$$i$$$, such that leaf $$$i$$$ is the leaf that minimizes the sum of values on the path from $$$i$$$ to $$$h(i)$$$. Initially, you must take the leaf $$$i$$$ which has $$$h(i)$$$ = the root of the tree. Sort the rest of the leaves in increasing order of the sum of values on the path from $$$i$$$ to $$$h(i)$$$, and add them to the subset in that order. DP solution Let $$$dp[i][j]$$$ be the minimum sum of values of nodes when choosing $$$j$$$ leaves in the subtree of $$$i$$$. If $$$j = 0$$$, then $$$dp[i][j] = 0$$$. Otherwise, $$$dp[i][j] = val[i] + min(dp[left][x] + dp[right][j - x])$$$, where $$$0 \leq x \leq j$$$, and $$$left$$$ and $$$right$$$ are the children of $$$i$$$ in the KRT. To optimize this DP for E3, notice that the values of $$$dp[i]$$$ are convex. $$$dp[i][j] - dp[i][j - 1] \leq dp[i][j + 1] - dp[i][j]$$$ holds. Doing the transformation $$$c[j] = min(a[x] + b[j - x])$$$ when arrays $$$a$$$ and $$$b$$$ are convex, can be done by merging the slopes of arrays $$$a$$$ and $$$b$$$. (See this errorgorn blog, (max, +) convolution part). You can maintain the slopes of the dp in a sorted multiset, and merge the multisets of the left and right children into $$$dp[node]$$$, and then insert $$$val[node]$$$ into $$$dp[node]$$$. |
|
+12
What is amazing about this contest? |
|
+1
An answer always exists, though. The pairing with minimum sum of segment lengths is optimal. If there exist points P1, P2, Q1, Q2 such that P1 is paired with Q1, and P2 is paired with Q2, and segments P1 — Q1 and P2 — Q2 intersect, then pairing P1 with Q2 and P2 with Q1 will decrease the total sum of segment lengths, and remove an intersection point. If the sum of segment lengths of sum pairing is optimal, then there does not exist a pair of intersecting segments. What must be proved is that $$$2n$$$ iterations is sufficient. |
|
+26
It can't be solved in better than $$$O(nm)$$$, where $$$m$$$ is the number of edges. https://en.m.wikipedia.org/wiki/Girth_(graph_theory)#Computation |
|
On
BedwarKing →
Dividing an array into K subarrays to reduce the largest possible difference., 23 months ago
0
Yeah that is what I meant by monotonic queue. I just realized that I wrote deque in the original comment lol |
|
On
BedwarKing →
Dividing an array into K subarrays to reduce the largest possible difference., 23 months ago
0
Couldn't you maintain a monotonic deque for the bitsets in the valid range, and remove the $$$\log n$$$ factor? |
|
+43
Can't wait to see another high-quality contest from you! |
|
+8
Aged like milk :( |
|
+43
Octagons will win IOI 2024! |
|
+8
Technically yes, but only Team 1 can contribute to Egypt's total medal count. Team 2 members also do not affect medal cutoffs. |
|
0
Congratulations! |
|
0
They have the same setting, but the JOISC problem is much harder |
|
On
atcoder_official →
UNIQUE VISION Programming Contest 2023 Summer(AtCoder Beginner Contest 312) Announcement, 2 years ago
0
Does there exist a faster solution to problem D? |
|
+9
So you are proud of being a troll with no life? |
|
-10
Deleted |
|
+13
Why? Because it forces you to think in a different way? |
|
+11
It's been more than a month since this comment was made. Any updates? |
|
0
For being the first to solve problem K. |
|
0
I apologize for my frequent comments, but the issue has still not yet been fixed. Does anyone know how to contact the site administrators? |
|
0
Hello, any updates? The issue persists. Registering a new account gives a similar error. |
|
-10
Deleted |
|
0
I can't sign in yet as well. |
|
0
This has been happening for the past few weeks and it has not been fixed. I've tried using a VPN, registering new accounts, and logging in with my gmail, but nothing works. |
|
+11
Deleted |
|
0
Could not code C in time :( |
|
0
The only math I did was solving a cyclic recurrence relation in dp[x], for dp[x]. (Similar to https://atcoder.jp/contests/dp/tasks/dp_j ). dp[x] here is a pair which has the minimum cost for the two players, when there are x numbers not chosen. |
|
+1
https://dmoj.ca/problem/ccc17s5 I believe this problem can be solved with this. |
|
0
gcd is bounded by 10^5. |
| Name |
|---|


