| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | dXqwq | 3436 |
| 8 | Radewoosh | 3415 |
| 9 | Otomachi_Una | 3413 |
| 10 | Um_nik | 3376 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 157 |
| 2 | adamant | 152 |
| 3 | Proof_by_QED | 146 |
| 3 | Um_nik | 146 |
| 5 | Dominater069 | 144 |
| 6 | errorgorn | 141 |
| 7 | cry | 139 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 9 | TheScrasse | 134 |
|
0
this indeed seems like a typo chromate00 |
|
0
In problem G do negatives happen? If yes, how are they supposed to be handled? |
|
0
Step 1 You can think of the operation in a different way: going from $$$x$$$ to $$$Ax + B$$$ Step 2 Comparing to operations $$$(A_1, B_1)$$$ and $$$(A_2, B_2)$$$ the first one will be better if it yields a smaller number. Write down the condition for this. Step 3 With the order fixed you can do a DP starting from $$$x = 0$$$. Any $$$x \leq P$$$ gives a feasible solution. |
|
On
atcoder_official →
HHKB Programming Contest 2025(AtCoder Beginner Contest 388) Announcement, 16 months ago
0
Happened to me. Maybe check if you're handling $$$A=B=1$$$ correctly. |
|
+2
For C you either use only L or only R, so you can try both and take the max. For the proof:
|
|
On
atcoder_official →
Toyota Programming Contest 2024#8(AtCoder Beginner Contest 365) Announcement, 21 month(s) ago
+3
One way to do it, is to use a sparse table to do jumps where before the end of a jump you move without changing $$$y$$$ and then to move to the final $$$x=e$$$ you first need to move to $$$y = L_e$$$ or $$$y = U_e$$$. This allows us to have a reasonable number of states by also having for the initial $$$x=s$$$ a $$$y = L_s$$$ or $$$y = U_s$$$. Then the sparse table allows you to do many of these jumps quickly, and you move forward as long as you don't go beyond $$$t_x$$$. Additionally to precalculate the jumps you also need a couple of sparse tables, and you need to do a jump from the initial $$$s_x$$$ (but you can reuse the code needed for the precalculation). You can check my submission for an implementation. |
|
+1
Instead of just returning a count you can return a count and also the position where it is reached. Also there is a maximum count you don't want to exceed and you need to remove a prefix which is not within the range of the query. You can take a look my submission |
|
+4
Your precomputation step's complexity is actually $$$O(nlog^4n)$$$. For each of the $$$O(nlogn)$$$ level changes you do a binary search which adds a $$$O(logn)$$$, and your query method has $$$O(logn)$$$ calls, and calling lower_bound inside adds an extra $$$O(logn)$$$. I actually had the same issue, the query method can be changed so that the binary search is done inside the query. |
|
0
Buth both c and y are int |
|
0
When calculating $$$c*(y+1)$$$ you may have an overflow. |
|
+3
Whether the order of the hashed values matter depends on the hashing function, the XOR hashing or sum hashing mentioned in the article linked in the editorial are actually independent of the order. For the sum hashing (which is the one used in the editorial's solution) in particular the hash will be different if a particular element repeats a different number of times in both multisets. |
|
0
This is similar to the alternative solution in the editorial, you would obtain it by decomposing the $$$(m-c)!$$$ in odd and even terms, then use the even ones to simplify the $$$(\frac{m-c}{2})!$$$, leaving you with a power of two and the product of odd terms. |
|
+13
Proof of the complexity would be the same as for the stack. You do n pushes into the stack and each element is removed at most once, so the number of removals is at most n, thus the complexity is |
|
+18
It is doing the same thing as the stack solution, using the |
|
On
atcoder_official →
TOYOTA SYSTEMS Programming Contest 2023(AtCoder Beginner Contest 330) Announcement, 2 years ago
0
If I understand correctly, you're considering the interval can start at some $$$a_i$$$ and finish at $$$a_i + x$$$, but you may be missing the cases where it can finish at some $$$a_i$$$ and start at $$$a_i - x$$$. To handle this I used a copy of the array with the reversed sign, and then you can take the min between both cases. Code |
|
On
atcoder_official →
SuntoryProgrammingContest2023(AtCoder Beginner Contest 321) Announcement, 3 years ago
0
Yes, the Japanese version is normally available immediately after the contest (like in this one) while the one in English can take a bit longer. |
|
On
atcoder_official →
THIRD PROGRAMMING CONTEST 2023 ALGO(AtCoder Beginner Contest 318) Announcement, 3 years ago
-15
AtCoder people don't watch Japan's Basketball match? :D |
|
0
What is the background of the teachers in these schools/educational institutions? |
|
+3
What are the differences between CF and NOI that affect yours and other people's performance? |
|
+10
Do you perhaps mean $$$\gcd(S) \geq 2\gcd(S')$$$ in the second part of the first item? |
|
0
Here as well, but with small k. |
|
0
If they're not disjoint, you can still remove the common part and obtain two disjoint intervals with equal XOR. |
|
On
snuke →
Toyota Programming Contest 2023#3(AtCoder Beginner Contest 306) Announcement, 3 years ago
0
I think I also failed the same test cases when I missed the case when K and N are equal |
|
On
snuke →
Toyota Programming Contest 2023#3(AtCoder Beginner Contest 306) Announcement, 3 years ago
+8
I think you wouldn't need to use them all though, if you take one with less or equal than n, then you only need to consider additional cycle sizes such that the primes different from 2 and 5 are not factors of the gcd, so every time you consider one more cycle size you divide the gcd by at least 2, meaning you only need $$$O(\log n)$$$ in total, the product of which should be smaller than X (and also their lcm). |
|
On
chokudai →
Tokio Marine & Nichido Fire Insurance Programming Contest 2023(ABC 304) Announcement, 3 years ago
+13
No need to consider borders, the constraints discard this happening. |
|
On
chokudai →
NS Solutions Corporation Programming Contest 2023(AtCoder Beginner Contest 303) Announcement, 3 years ago
0
I failed the same two cases because of not considering that for a few turns the partial damage of an attack can be better than the full damage of another attack, since I see you have only |
|
0
Yes, there's an update about it now |
|
-18
How could this code be modified to work in some modulo? I've tried to modify it for this problem about polynomial multiplication, but got TLE (you can find the code for my submission here). In this case using int alone gives WA because of overflow, so I had to use an intermediate casting to long long before applying the modulo. |
|
0
seems to be mentioned in one user editiorial in japanese |
|
0
You have Quantiopian which should be similar. |
|
+1
You mean AI like Game AI, or like Machine Learning? |
|
+15
I was thinking a checkbox asking whether you want to automatically submit Large in case Small is right would be useful. |
|
0
I'll rember including cstdlib before using srand. |
|
0
The particular thing in the problem is that the value of o is 2, this gives you the equivalence between solving the main problem and the two subproblems |
|
0
Since you're using the maximum matching it has to be optimal. Upgrading happens when you modify one occupied cell in one of the two subproblems. |
|
0
You can divide the problem into one problem for rows/columns (x, o) and one for diagonals (+, o), the first can be solved greedily, and for the second one you do a maximum matching between the diagonals that haven't been used (as long as the edge represents a valid position on the grid). |
|
+12
I'm at Barcelona this week and can confirm Barcelona is great, weather is really nice even during winter and the beach is close. By the way does someone know if individual registration is possible and what's the cost? |
|
+18
Seems related to these two TC editorials (D1-1000): https://apps.topcoder.com/wiki/display/tc/SRM+518 https://apps.topcoder.com/wiki/display/tc/TCO+2012+Round+2A |
|
+10
Aren't these the problems with the constructive algorithms tag? |
|
+5
Any ideas on how to solve G? I couldn't figure out how to use the second condition. |
|
+10
Yeah, it's the Max-flow Min-cut theorem |
|
0
In the editorial for C shouldn't the -1 in the inequality be +1? |
|
+23
So, you don't actually need to make the comparison with the greatest element in L, just splitting R in ≥ 2c and < 2c, and then inserting all the elements in the second treap one by one into L would also give you the same complexity. |
|
0
In D3, shouldn't the base cases be dp[0] = dp[-1] = 1, so that it can cover the case when a segment is made with all available columns? |
|
+10
Weird, I tried that link yesterday from my phone and it didn't work, it worked today from my laptop, though. Thanks. |
|
+8
Is the user database the same as the one for the old site? I had already registered in that one and apparently I can't recover the password |
|
0
Since you know the total sum, once you know the sum of the positive terms you can calculate the sum of the negative terms later. |
|
0
You can improve that by a factor of two. |
|
+15
If one of the organizers is looking at the post it would be good to indicate the last date when the DCJ testing tool was updated so that we can know if it may be necessary to update it. |
|
0
Nice site! Would it be possible to add a list of the failed problems? It would be useful in order to go through them once again easily. |
|
0
It's been a while, but do you mind explaining your solution? It seems to be quite different from the others from what I saw in your code. |
|
0
Seems to me like what is being built is this: https://threads-iiith.quora.com/The-Bridge-Tree-of-a-graph |
|
0
I was trying to understand F with the definition of biconnected component as given for example here, but it seems the one being used in all the codes is not quite the same. For example the graph with edges (1,2), (1,2),(2,3),(2,3) would consist of only one component instead of two. Is this okay or am I getting something wrong? |
|
If the only API interaction was for getting the text it should also be possible to make it work with Codeforces' talks, right? :D |
|
+1
Suppose in the previously mentioned problem you coded a recursive solution just to see what is happening in the output, which can be useful sometimes, and then while (or after) coding it you notice that prefix sums are useful, then you will need to either code the solution again, or copy some of it and fix it, coding it again is not optimal for competitions with a limited amount of time, and copying it could introduce unexpected bugs, then why not just code the iterative at the beginning? And, you can also use the iterative solution to decrease the amount of memory you use. |
|
0
Latin America, Peru, Universidad Nacional de Ingeniería |
|
0
But, interns only need a J1 visa which is not as complicated as those others. |
|
0
Right, I didn't notice that. Thanks for the explanation. |
|
0
In the editorial for problem F, when it says "If x_turn is shining, then pos' is shining as well, so we could have finished our turn there.", isn't that only true if x_closer2 <= pos'? Also, how can we justify that it is optimal to stay at an endpoint when x_turn is not shining? |
|
+8
Anyone can explain how the Wavelet tree is being used in https://www.codechef.com/AUG15/problems/DISTNUM ? From anta's code it seems like it is indeed what is being used, |
|
0
They sent a form where you could choose the date you preferred, I guess they won't be assigning you the other if you didn't choose it. |
|
0
You can start by calculating the maximum number of groups you can be from these graphs. |
|
0
Shouldn't the editorial be unlocked even if you solve the problem after the contest? |
|
0
Great, thank you. |
|
0
Do you know if we get to choose the dates? I took the test, but there was no place to choose that in the form. |
|
+3
couldn't resist
But seriously, do you mean during a contest or when training? |
|
+3
you can solve it with Fenwick tree by first calculating: sum(i = x to n) (x — i + 1) x (x — i + 2) , you will get a polynomial of degree 3, then you can use four BITs to heep all necessary information. |
|
+18
mayble a google doc or a github repo with a file for each editorial? |
|
+1
Add the denominations in increasing order. If you already have interval [1,x] and none of the already existing denominations can help you increase it, then if you add a denomination greater than x + 1, you won't be able to make (x + 1), if you add a denomination smaller than x + 1 you will get a smaller interval. |
|
+38
Greedily add the smallest coin you need. |
|
+30
Did the same thing, except for the last step, you could check that the total product was -1. |
|
+3
What is the k in your state? |
|
+6
I used DP in segments of length equal to a power of 2 and then merged them to solve the queries. You could also do that with a segment tree. Code: 6427362 |
|
+5
You do a DP keeping an increasing sequence of powers of 2 by using a bitmask. |
|
0
Could some team share their approach for problem R from the Electronic Contest? We picked a pair of rows and made some vertical moves, and then only horizontal moves. |
|
0
Maybe here: http://internetolympiad.org/ |
|
0
Any hint for problem I? I saw that the sequence could be reconstructed, and was thinking about using DP to go through the sequence. The condition of being independent appeared in a recent round, but I couldn't find a way to express the condition of dominating in a recurrence. |
|
+1
You can keep only one prime divisor for each number. Also you could use an array of next multiple and array of booleans indicating whether a number has been used. You can use the second one to keep the other updated. I think that is faster than using vector <set > st |
|
+1
You can generate all numbers. To find the next number, factorize the current one, then you would need to take the minimum multiple of one of its prime numbers, which hasn't been used. |
|
+6
You also have: http://projecteuler.net/ http://mathalon.in/Mathalon/ |
|
+8
There are some problems posted by Anton_Lunyov here: http://mirror.codeforces.com/blog/entry/1520#comment-29431 |
|
0
The archive. |
|
0
When I go to the link, it shows: The URL you requested has been blocked. URL = invalid |
|
+8
this one seemed a nice dp with optimization to me:https://www.hackerrank.com/contests/monthly/challenges/alien-languages |
|
0
that is not completely true, when you filter by a particular tag, both can appear, they can also have different tags |
|
+95
hopefully it won't be my third consecutive unrated round :D |
|
0
|
|
+7
You can improve it with this: http://wcipeg.com/wiki/Convex_hull_trick |
|
+45
I'm curious about what chinese coders consider easy, a problem very similar to B was the hardest one in the latinoamerican regional last year. |
|
+6
|
|
+1
|
|
+12
That's ok, but then the description should be changed, since it says there are statements in english, and the are two pdf files but both are in russian. |
|
+15
Look at it as the number of multiples in the range [1,n]. Then you get: n/1 + n/2 + n/3 + ... + n/n |
|
+1
First fix, the numbers of books with thickness 1 and 2. Then you can find the minimum width of the books at the top greedily. |
|
+3
|
|
0
Can people from any country participate? |
|
+9
By the way problem C is very similar to: http://www.codechef.com/ACMAMR12/problems/FSSYNC which some (like me) may have solved recently. |
|
+3
You only need to do two sweep lines, one for the X queries, and another for the Y queries. In each sweep line, you need to keep a counter that tells you the number of active triangles. |
|
+8
This is quite similar to my situation when I started. My country doesn't participate in IOI and I only heard about IMO too late. When I started at ICPC there wasn't any team from my country which had gone to the world finals. My team finally made it at its fourth regional, and again made in the fifth(and last one), so just train seriously and you can make it :) |
| Name |
|---|


