| # | User | Rating |
|---|---|---|
| 1 | jiangly | 3810 |
| 2 | Benq | 3676 |
| 3 | Kevin114514 | 3655 |
| 4 | maroonrk | 3463 |
| 5 | strapple | 3447 |
| 6 | Um_nik | 3387 |
| 7 | heuristica | 3322 |
| 8 | turmax | 3317 |
| 9 | tourist | 3307 |
| 10 | jiangbowen | 3291 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 156 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | Um_nik | 143 |
| 5 | Errichto | 139 |
| 6 | adamant | 137 |
| 7 | AmShZ | 135 |
| 8 | maroonrk | 133 |
| 9 | BledDest | 132 |
| 10 | qwexd | 129 |
|
0
I have written a blog on using a debugging template quite some time back. You all can have a look at it as well: https://cs-mshah.github.io/getting_started_with_cp/#debugging |
|
+23
Check DMOJ. Here are the docs: DMOJ Documentation |
|
0
CP Editor, as it automates a lot of stuff. Here is a blog I wrote for a good setup: https://cs-mshah.github.io/posts/getting_started_with_cp/ |
|
0
here you are able to print using |
|
+10
One stop to debug template and its usage: https://cs-mshah.github.io/getting_started_with_cp/#debugging |
|
+8
Nice blog! |
|
+7
Amazing blog! The blog by -is-this-fft- : [Tutorial] The DFS tree and its applications: how I found out I really didn't understand bridges is an amazing blog on bridges. There a small correction too: in the pseudo-code, it should be |
|
0
It would be nice if you could add more features like time taken for every test case, comparing floats with various precisions, yes/no checker. Basically a few more arguments for more features. Also make the diff checker ignore trailing/leading spaces/newlines. |
|
On
CodingKnight →
A simple C++ tracer class for tracking function passed arguments and return value, 5 years ago
+1
Here is what I use and found to be the simplest: link to my comment |
|
+1
This is what I use: cf comment. |
|
0
what do you mean by propagating? You need to have starred some blogs to see them under favourite blogs. They will appear in a collapsed form. |
|
+4
The idea sounds great! But to do that would be equivalent to designing a new website and there is a site just for this purpose! |
|
+49
One of the finest rounds on codeforces. kudos to the problem-setters! |
|
+9
I did an overkill for C. I used an ordered_multiset. Though I feel a bit stupid, I think the template I used is pretty amazing : 122832592. |
|
0
Here's a template that can be used for debugging, which supports colours: Template The functionality of this is similar to what I've mentioned here: comment |
|
+1
I tried to compile and it threw several errors. Am I missing something? |
|
+18
I did some research and searched for very good debugging techniques and templates. So this is what I felt is the best method for debugging, and this works for several stl containers including myprettyprint.hpp Now, you might be feel that this would make my default template a lot more scary and confusing. So a solution to that is to use the main template Results: output
|
|
-15
neal |
|
+41
Me after reading C: |
|
On
chokudai →
Mynavi Programming Contest 2021(AtCoder Beginner Contest 201) Announcement, 5 years ago
0
Can someone tell me why my D is wrong? link
So the transitions are basically what is the best path to arrive at that square(in reverse). The recurrence and transitions are in the code. I don't know why this gave WA for 3 test cases. What am I missing?? Is the DP wrong or have I made some mistake in transitions or base cases?? |
|
+21
Balajiganapathi can you create an option to give virtuals on codedrills so that those who have missed a practice contest can still give? |
|
On
askd →
Introducing cp-notes.com — a place for your interesting competitive programming problems!, 5 years ago
+8
The idea is absolutely wonderful. One suggestion: you could add something like folders. So if I have lets say dfs related problems, then I could make a dfs folder and place the notes of those problems in that particular folder. |
|
0
yes this generally should work |
|
0
just recent bad contests. once i cross 1500, hopefully won't dip again |
|
0
|
|
0
Very nice method. Very well explained. Got interesting things to learn. |
|
0
very well explained. I really wish if editorials explain it so well. |
|
+1
Do we receive an email on registration? Because I don't think I got one. |
|
+3
I_will_come_back you explained really well! I really wish that the editorials are written in great detail so that everyone understands. |
|
0
Problem C of div2 can also be done using binary search on the ans. |
|
0
How did you use method 7 in the problem 1? I used the method of difference array and prefix sum. |
|
+3
Currently I am facing this very similar issue, but in my case I am not practicing sufficiently. Also my major weakness is constructive ad-hoc problems. I'll try your method and see if it works. Do tell me if there is anything else I should do |
|
+3
Rachmaninoff piano concerto no.2 |
|
0
I thought of the exact same idea but it gave WA. |
|
0
Generalisation of problem B has already been asked quite recently on atcoder |
|
0
Can you explain the rounding in E. By using simple ceil(a[i]/m), it doesn't work. But in the equation, we have a[i]/m<=ki and we want sum of all ki<=k. How to handle these things as they might occur in different problems. |
|
0
I used binary search though |
|
-6
This will be my first time watching a tourist live stream. Am really excited! |
|
0
There are a few suggestions: I wasn't able to see the problems which I did in a mashup in green colour. So you could add a possibility of manually doing it or automate that for gyms. Also you could add a feature to add multiple handles and showing the number of them who did a problem below it, so that we could design mashups for our friends. Something like sorting by lists in codeforces. |
|
+37
Lol I was in bad mood after reading the long statement of C. Missed it by one case |
|
0
I was wondering how to solve D if there were multiple stocks. I think this would be quite hard. |
|
+22
When I was in 9th grade, I independently discovered a link between the pascal's triangle and the fibonacci series: 1 Now if you see diagonally, you will see the fibonacci sequence. It is easy to prove using induction. |
|
0
You could practice on KTouch if using ubuntu! |
|
-14
YES! upsolving higher rated probs teaches several new concepts. So for learning, +500-700 would be great. You might not be able to solve on your own, but can learn a lot from editorials, others' solns. |
|
0
Wonderful soln. could you just add some comments and send the soln so that I can understand 100%. Mainly what are the first second things and how is the @ thing being checked! |
|
0
nice contest!! |
|
0
I really wanted to write a blog on this concept as I was completely shocked by this trick when I solved this problem: |
|
0
i was wondering if it was possible to use a comparator function in B. If someone has done it, please share the solution. |
|
+45
The statement of D was very bad. It took me 15mins to understand. |
|
0
says invalid email |
|
0
Can someone tell me what is wrong with this. I am unable to see the initialisation |
|
-48
Haw re baba |
|
0
You dont need comparator function. just use negative value see this 80158855 |
|
0
our main idea is to select the leaves but now if we have more to select, we will pick one level above the leaves. So, which ones should we pick? We pick the ones having maximum happiness. Now if we pick one,we know that it will add happiness by the level of that node, but as we have picked all in its subtree before its picking,we need to subtract the number of nodes in its subtree as while travelling up, the current node won't count. |
|
0
TIMUS-Ivan's Car |
|
0
|
|
0
actually my solution is the same as the editorial. 76863601 |
|
0
For competitive companion, go to chrome extensions and add it. Set the port to 10045 in extension options of competitive companion. |
|
+1
What Floyd Warshal does in every iteration is that it picks a vertex and for all pairs of points,it updates the shortest distance between them passing through the iteration point and thus after all iteration, the adjacency matrix will have the min distance between i,j. |
|
+2
For D, we can use Floyd Warshal with a little modification. |
|
0
K is a t max 2*10^9. So n would be < 2*sqrt(2*10^9) which is approximately 89000. And as we had n*(n-1), i took 8*10^5 in the estimate. You could have put a higher value. |
|
+2
I have a different approach for B. |
|
0
It says something went wrong |
|
0
Another useful thing would be to precompile the <bits/stdc++.h> header to reduce the compilation time. Just compile it as you normally compile in the folder having that file. The compiled file would have a .gch extension. |
|
+4
Thank you for the wonderful contest. I really liked problem C of div2. The trick was to see what the operation is exactly doing! |
|
0
Happy valentine's day in advance everyone!! |
|
+13
Thank You very much for the problems.Learnt to think for basic things first in easy problems rather than taking cases and complicating. |
|
-34
why are there so many down votes? This hampers my contribution. Pls up vote. |
|
+3
div3VovuhForces |
|
+4
basecaseforces,WAforces |
|
0
yep even i have done something very similar. 69899087. |
|
0
here is my submission:69550598. I ran bfs once and stored the parents and the no.of direct children for every node. Then,i made a queue and a counter j. the no. extracted from the queue is the current parent. so i check the next children no. of nodes in the input from j. if any of them does not have p as its parent,it would not have been added by any way of dfs traversal and thus we answer No. If it is a child then add it to the queue. If the loop runs successfully,we increment j by the no. of children so that we can check for the children of the next parent. I hope this explains my code. |
|
On
RomeoFantastik →
Maximum Sum Sub-array - Partial Sums Approach (With Implementation), 7 years ago
+3
nice explanation. Thank You |
|
+1
Can you add support for competitive companion so that we can automatically run the test cases. You could also add a submit soln button using cf tools. |
|
0
Is there a problem with indentation as whenever I open the braces and press enter, the cursor does not indent after the braces and I have to press tab. This does not happen once but for every statement, I need to use tab for proper indentation. Also,it would be great if there was a feature for autocomplete |
|
0
How would we solve the problem C if an additional condition of k members in a team is imposed |
|
0
I actually got it by using sudo and then pasting in /usr/bin |
|
0
It says permission denied when i try to move it to /usr/bin even when i have allowed the execution as a program |
|
0
yep...thanks,it worked |
|
+1
why does this 68940816 for prob A fail on test 50! I have used the values of x that would give minimum. |
|
0
It gives an error-unable to access jarfile Hightail. Can You please give a detailed procedure to use hightail after downloading and extracting the zip file. It would be highly appreciated if you make a video. Thank You |
|
0
if dp[i]=min cost to buy first I items,how is it that that is the optimal way to buy max no. of items? I understood your dp, but I would like to have a proof. My dp is quite poor. |
|
0
my one also got accepted with ifs now 68356480 THANKS |
|
0
yeah,sorry for the complexity,but what should i do to optimise then?should i write using ifs? |
|
0
even i am getting TLE on test case 10 for 68349376 |
|
0
for problem B, why does 68349376 give TLE inspite of being n^2logn? |
|
0
looks very cool!! |
|
0
Ok i kind of got it now |
|
0
can please you explain 1a & 1b a bit more clearly and what about going to the left? thanks for your kind help |
|
0
Please explain D,i still don't understand. |
| Name |
|---|


