# | User | Rating |
---|---|---|
1 | jiangly | 3640 |
2 | Benq | 3593 |
3 | tourist | 3572 |
4 | orzdevinwang | 3561 |
5 | cnnfls_csy | 3539 |
6 | ecnerwala | 3534 |
7 | Radewoosh | 3532 |
8 | gyh20 | 3447 |
9 | Rebelz | 3409 |
10 | Geothermal | 3408 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 164 |
3 | adamant | 163 |
4 | TheScrasse | 159 |
5 | nor | 158 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 151 |
8 | SecondThread | 147 |
9 | orz | 146 |
10 | pajenegod | 145 |
+9
RIP I read it now! There should have been an announcement atleast if the problem statement was updated and new test case was added! |
+8
In the problem CR195 how is the answer 136 in case n = 4? We wrote bruteforce and got answer as 120. Can you please explain? |
0
Firstly, without loss of generality we can assume the tree to be rooted at 1. Let dp[i][j] be the maximum sum(which in turn will lead to maximum mean) that can be obtained by considering the j-connected component in the subtree of node i which includes node i.Now for a node src, if I have the DP table filled for all of its children, how can I fill up the DP table for node src? |
+23
|
+1
|
+3
What would we do if constraints were small? Use partial sums! |
0
It is due to the ceil and floor functions being so slow! Check this submissions : 1 2. The only difference here is in ceil function. I generally try to avoid ceil and floor function now! I found a discussion here but am unable to get it. It would be great if anyone can explain some concrete reason behind this. |
+2
Me too. Just solved 2 problems :( |
0
Thanks :) |
0
Also, can you please share your approach for E? |
0
I am pretty bad at explaining things, but nevertheless I will give it a try. Root the tree at A for ease. Observe that if we choose any vertex from subtree of B as D, and any vertex from subtree of A(but not subtree of B including B) as C, the path between A -> C and B -> D will never intersect. Now, you can even select any vertex which is parent of B(but not A) as D. In this case, the vertex that are candidates of C are all the vertices in subtree of A — vertices in subtree of chosen vertex D. This can be calculated by running a DFS with root as A and storing subtree size. Here's my code for reference. I hope its readable. |
0
Have a look at this tutorial : Link |
+5
Bump! When will the tutorial be published? |
0
Got it.. Thanks :) |
0
Thanks for the reply. Can you elaborate a bit more on A? |
+1
How to solve A and J? |
0
Maybe use long double instead of double! Link |
0
Can the dp be formulated as dp[i][j] = minimum cost obtained upto position i with maximum size being at index j? |
0
Could you please share your code? |
0
Yeah figured it out. Thanks for the help :) |
+1
Why are you taking x = d[i — k]? Can you elaborate more on that? |
0
Can you elaborate how to dp in E please? |
+4
The problems were very good. Thanks for a great contest ^_^ |
+8
How to solve E and H? |
+3
The problem is that you aren't counting the numbers that need to be less than x and are less than x. Say if you encounter a number at mid which is less than x and you need a number less than x, you can't use it for swapping later on. Similar thing needs to be done for greater than x case too. You missed this point and so you are failing in those cases. I hope I am making sense. |
0
Can someone point out why my solution to C fails? Link |
0
Can you please share your code? |
0
Can somebody tell me why my solution to F fails? |
0
If you group 0 and 1, 2 will belong to other group and say key will be 2 or more. Thus you will get 0 2 0 254 254 which is not desirable! |
0
I don't know if this is the right place but can you answer this question of mine regarding the problem GQR : Link |
+4
I didn't get how did you obtain that formula from OEIS. I heard it for the first time here so I am very unfamiliar with it. Can you explain a bit more? Thanks! |
0
Thanks for the link :) |
0
I can't find the link to the problems or check my submissions. Can you provide it? |
+2
Seems like April has arrived a day early this year xD |
0
The only problem is that it doesn't support some features and functions of C++14 and above! |
0
I too use CLion.. But I have a problem. It frequently displays error saying Executable file could not be linked. I have configured Cygwin. Any help or tips would be helpful. Thanks :) |
0
Thanks :) |
+1
Any idea what was the pretest 5 in C?? |
On
Superty →
CodeCraft-18 and Codeforces Round #458 (Div. 1 + Div. 2, combined) Editorial, 6 years ago
0
Great explanation. Thanks for taking time and explaining! |
On
Superty →
CodeCraft-18 and Codeforces Round #458 (Div. 1 + Div. 2, combined) Editorial, 6 years ago
0
In the function cntperm , why are you doing temp--?? I am not able to understand this part! |
On
PraveenDhinwa →
Invitation for ACM-ICPC Gwalior Onsite, 2017 India Regionals Replay Contest on CodeChef, 6 years ago
0
I can't open the All Contests tab... Am I the only one?? Edit : FIXED!! |
0
Can you tell the badgewise rank distribution please? |
On
vintage_Vlad_Makeev →
Codeforces Round 454 (and Technocup 2018 — Elimination Round 4), 6 years ago
0
Couldn't even solve A :( |
0
Thank you :) |
0
Hii.. I am new and learnt BIT sometime ago.. Can you please explain me what does compression means in this context? |
0
Damn!! I had the exact same idea but couldn't implement it... |
-7
I enjoyed solving the problems of your previous Codechef round! Unfortunately I have to be at a college event this time :/ |
-7
How to sleep at night after your solution gets WA because you missed long long in assigning value to a single variable :/ ? |
0
I was wondering the same!! |
0
Why aren't solutions of other participants visible?? |
0
I tried parsing Codeforces questions but did not succeed. Also, I get the following error when I parse the problem with its URL: I am a beginner and am pretty sure might be missing something silly!! Sorry for the trouble! |
0
Thanks for the amazing tool! |
0
Read the input section carefully! It says that input consists of several test cases. You haven't taken this fact into consideration. |
-10
Heyy! No screencast since long :( |
0
Can be easily done by greedy + vector pair!! I got WA cz of missing to typecast answer to long long :( |
0
I used greedy with vector pair!! WA just cz of missing long long :( Same code passed on adding long long after the contest :( |
0
Hey, Can anyone tell me why my code failed in Test #15 of Problem B. Here's a link : My Solution |
+13
+1 :p |
Name |
---|