| # | 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 | nik_exists | 131 |
| 8 | Dominater069 | 131 |
| 10 | Proof_by_QED | 130 |
|
+15
By that logic BIPFAMIL is harder than WORDGRID and my argument stands. Moreover, there are 3 people in a team. I think it is reasonable to expect that at least one reads all the problems :) |
|
+26
Why didn't you attempt WORDGRID over BIPFAMIL? From my perspective, once you know WORDGRID is bruteforce, one team mate can start writing code for it while another works out the math for BIPFAMIL. Did any teams try this strategy? |
|
+3
In the worst case the desired graph will have |
|
+8
|
|
+5
Doesn't work for me :/ |
|
+1
Auto comment: topic has been updated by VastoLorde95 (previous revision, new revision, compare). |
|
0
Auto comment: topic has been updated by VastoLorde95 (previous revision, new revision, compare). |
|
0
Auto comment: topic has been updated by VastoLorde95 (previous revision, new revision, compare). |
|
+9
Did anybody manage to pass this using Monte Carlo sampling and DFS? |
|
+5
Are there any new features that are useful for compeititons as well? |
|
+6
See Growth Rate |
|
+8
Number of divisors of n is approximately |
|
+9
Saw your submission — 35045018, got the idea. Thanks :) |
|
0
So then we can compute the maximum value of min(dp[i—1][k] + X, W + k * B) + cost[i] * k, where k takes ci different values by splitting the interval into O(logci) intervals and taking max from each? Isn't that slower than the solution using a queue? |
|
+10
What do you mean by |
|
-23
I think it is NP hard since it can be used to solve the Hamiltonian Path problem. I'll let someone who is more well versed with the theory correct me on this. |
|
+18
Is this because of the new diagnostic mode? |
|
+5
Are the numbers in the parenthesis your judgement of how difficult each problem is? |
|
0
What was the hack for Div 1 C? |
|
On
MikeMirzayanov →
Codeforces Round 440 Div.1+Div.2 (and Technocup 2018 — Elimination Round 2), 9 years ago
+6
2 hrs |
|
0
When you combine two strings, you create at most K-1 new substrings of length K |
|
+8
You only need the first K and last K characters from every string where K is the maximum possible answer. |
|
+3
Was anybody able to solve the last problem with divide and conquer dynamic connectivity? Despite lots of optimization, my |
|
+5
|
|
+10
Thanks! |
|
0
+1. For someone who knows the Sprague-Grundy theorem, proving the time complexity is the only hard part in the solution :/ |
|
0
Prove it by contradiction. If some shop is skipped, you can replace it with some other shop and decrease the total cost. |
|
+3
Greedy. The chosen m shops should be contiguous from the list of shops that contain items. |
|
0
n graphs that contain a single node and no edges... should have been clarified. |
|
0
Problem E
Really interested to know how to prove such a lower bound! :D |
|
+12
for 1,1 and 2,2 the answer is -1 |
|
0
Move the empty cell to top left corner. Now eliminate columns one at time taking care that there is always an empty cell available in the next column. For example you can do 3 1 1 1 Now eliminate the first column sparing one ball and repeat the process for column 2 and so on. The configuration after this step is complete easy to handle. |
|
0
Any short approach for GAMEBALL? Also what is the minimum number of moves required to finish a game? Our solution never does more than 500 moves. |
|
+11
How to solve C? |
|
+18
Good luck :) |
|
+18
Is there any possibility to participate remotely? |
|
+28
Have you contacted the contest manager or Bill Poucher regarding this? |
|
0
I submitted some wonky solution for C which works in Did anybody else do the same? Could you prove a tighter runtime? The idea is that the more unique drinks you have the lower your total volume required |
|
0
What was the expected solution? |
|
0
Guess they didn't want people hacking |
|
+41
|
|
0
I can only imagine your disappointment... Thanks for the support! |
|
+13
And it makes perfect sense to downvote them because it's their fault that the rules were changed. SMH. We know we didn't earn the spot but we will try to fill in and represent our country to the best of our abilities. Sorry it turned out this way, we didn't ask for this to happen. I don't think it will justify whatever has happened but we were just 1 rank behind you in the Kolkata regional. We are going to go all out with our training and we hope we can fill in your shoes. |
|
+52
R.I.P. English |
|
+11
I am unable to login on the site. Using Google+ login gives me an error message saying "invalid credentials" |
|
0
Is this common knowledge that the ring of polynomials is a UFD? Since the number of accepted solutions was reasonably high, I believe there might be a simpler way to prove the sufficient condition. |
|
+3
What is a unique factorization domain? Edit: The explanation on wikipedia suggests that this is something similar to the fundamental theorem of arithmetic? Is so then how do you prove the uniqueness of factorizing polynomials modulo p? |
|
+7
Can someone enlighten me why checking if ba - 1 is a root of P(x) modulo p is a necessary and sufficient condition in D? |
|
0
Is there some way to create a bitset like this instead of creating a custom bitset object? |
|
+24
Was Problem F checking if subset sum = k for min and greedy for max? |
|
0
Hint : You can build the grid via an alternating sequence of 90 degree and 180 degree rotations and you need to perform this replication of the grid exactly n times. Also observe that the final grid size is not that big |
|
On
kingofnumbers →
Invitation to ACM-ICPC Asia - India Final 2016 Onsite Mirror Contest., 10 years ago
+8
Clever :) |
|
On
kingofnumbers →
Invitation to ACM-ICPC Asia - India Final 2016 Onsite Mirror Contest., 10 years ago
0
Can you elaborate on your tree dp idea? Couldnt come up with anything better than |
|
On
kingofnumbers →
Invitation to ACM-ICPC Asia - India Final 2016 Onsite Mirror Contest., 10 years ago
+3
Yes |
|
On
kingofnumbers →
Invitation to ACM-ICPC Asia - India Final 2016 Onsite Mirror Contest., 10 years ago
0
I think the answer for C is an n dimensional regular simplex |
|
On
kingofnumbers →
Invitation to ACM-ICPC Asia - India Final 2016 Onsite Mirror Contest., 10 years ago
+3
You can break factorials mod m into chunks of size m - 1, skipping all multiples of m. Now observe how all chunks except the last one teudce to (m - 1)! |
|
On
kingofnumbers →
Invitation to ACM-ICPC Asia - India Final 2016 Onsite Mirror Contest., 10 years ago
0
Oh sorry wromg problem I meant H and not E |
|
On
kingofnumbers →
Invitation to ACM-ICPC Asia - India Final 2016 Onsite Mirror Contest., 10 years ago
0
How to solve C? And does |
|
+4
Hint : in the second round divide the array into quarters and swap the 2nd and 4th quarters. Similarly do for eighths in the next round and so on for \ceil{\log(n)} rounds |
|
+1
Greedy. Start from largest pile. Pick pile i if 2p(i) >= X else don't. |
|
0
Cool :) |
|
0
Does anybody know when the onsite results will be announced? |
|
-13
12 ipads and ≥ 1500 bucks for the top 200. What. The. Fuck. |
|
+11
Remove some 0s from that figure and I am pretty sure someone will end up paying XD |
|
0
You only need to check primes upto |
|
On
harrypotter192 →
Invitation to IPC’s ICPC Preparatory Series Finals & Finals Mirror, 10 years ago
0
Frantically hit F5. It always does the trick for me! |
|
0
Segment Tree |
|
0
It is available on the Codejam site itself |
|
+18
Jump for i-th level is to number i * i * (i - 1) * (i - 1) |
|
0
hint: check if ia + ib mod k = 0 for all i ≤ k |
|
+1
|
|
+1
If you know that ia mod k = r then jb mod k must be k - r. Instead of iterating over i, iterate over the possible remainders of ia and you will know what kind of remainder of jb you are looking for. |
|
0
ia mod k = (i + k)a mod k |
|
+25
Hints for large: Problem B: We only need to compute ia and ib for i ≤ k. Problem C: Greedy. Remove the segment such that maximum number of points are uncovered. Implement using line sweep to check for moments when exactly one segment is "active". Problem D: DP. If the size of thr right most chunk is x then it must consist of the largest x elements of the permutation if we want maximum no of chunks. Also such a chunk cannot havr a suffix of size y < x consisting of the largest y elements else the right most chunk can be split into two. Use dp compute number of such right most chunks of size x and use another recurrence to compute the answer for n using information from permutations of size n - x. |
|
+64
I had a solution that didn't need flows and works in Get a path from s to t. If none exists, print 0. This path will consist of at most n-1 edges. Now for each edge in this path, remove it from the graph and construct the bridge tree of the remaining graph. If s and t are in the same block int the bridge tree then removing this edge is of no use to us. Bridge Tree can be constructed in If s and t are in different blocks find the minimum weight edge on the path from block of s to block of t in the bridgeTree. Now you have two edges, compare their weigths with the current minimum and update accordingly. Add the removed edge back to the graph and repeat. Took too much time debuggin but oh well :/ 19347868 |
|
0
363 Div 1 C. You can add it to the list. |
|
+3
Great tutorial! If only I knew about this before today's contest :P |
|
0
Div 1 E: Heavy Light Decomposition? Find the minimum on each path and then set that node to Infinity? |
|
+3
From the CF comments section after a failed attempt to solve a problem :P |
|
+4
Two numbers x and y have the same remainder modulo c[i]'s if and only if abs(x-y) = lcm(c[1], c[2], ... c[n]) Now if x mod k and y mod k are not the same, then there will always be ambiguity for Arya. x mod k and y mod k will be the same iff lcm(c[1], c[2], ... c[n]) % k is 0 since the differ by this amount (or a multiple of this amount) |
|
+10
I think you mean't the other way around. |
|
0
How to solve ARITHM? |
|
+4
Here you go 7 5 6 3 7 3 3 1 1 5 2 4 Participant's output 2 4 1 3 5 6 7 Jury's answer 6 7 3 1 2 4 5 Checker comment wrong answer Not topsort: 6,3 -> 6,4 |
|
+3
DP + Square Root decomposition In the optimal path, once you have collected the first k keys, you should move to a square to collect the k + 1th key. Thus we can divide the entire matrix into layers where ith layer consists of the co-ordinates of the matrix where such that a[x][y] = i. Maintain a value for each of these points -> the minimum distance traveled to reach it. Now we need to do transition from layer i to layer i+1. A brute force implementation for transition could take O((nm)2) time. Thus we take two cases -> If the size of the previous layer is greater than (nm)0.5 and otherwise. If it is smaller than (nm)0.5 we can do bruteforce, else we do a BFS with careful book keeping. Overall complexity O((nm)1.5) |
|
-6
I am offensive and I find this brown. |
|
+5
Nope. |
|
+5
Nope. |
|
+8
See FatalEagle's solution. He did it in a much simpler |
|
0
|
|
0
Edit: Damn, that is a very, very clever technique. Thanks for sharing your sample code! |
|
0
Because in a valid polynomial Q, the problem states that |
|
+67
Welcome to India Errichto! :) |
|
+15
Is the official list of finalists out? |
|
+5
Any update about the editorials? The problemset was very interesting, it would be a shame if people don't get to learn something new :) |
|
+35
Unless your friend's solution fails system test. |
|
0
How to solve COPSUM? |
|
+20
|
|
0
Thanks! |
|
0
When and where can I find them? |
|
+6
Will there be editorials for these rounds? |
| Name |
|---|


