# | 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 |
On
Dontony →
Eligibilty criteria for 2023 passout students for ICPC Amritapuri regionals 2023-24., 7 months ago
0
Auto comment: topic has been updated by Dontony (previous revision, new revision, compare). |
0
Hi can anyone help me to find a counter testcase where my code gives runtime error. Got runtime error on test 3 and couldn't find the fix till now. Link:- https://codeforces.com/contest/1841/submission/209481108 |
On
chokudai →
KYOCERA Programming Contest 2023(AtCoder Beginner Contest 305) Announcement, 10 months ago
0
Is G based on matrix expo on 2D dp?I figured out the dp but had no clue how to convert a 2D dp to matrix expo... |
On
chokudai →
KYOCERA Programming Contest 2023(AtCoder Beginner Contest 305) Announcement, 10 months ago
+16
I have another solution to C different from editorial which is much simpler.The answer is that cell which contains a '.' and has greater than 1 adjacent '#'s. |
0
Morning waking time:-7:30 a.m. Sleeping time at night:- 2:30-3:00a.m. (1 hour sleep in the afternoon) |
0
See my solution using only binary search(as a fancy thing). |
On
chokudai →
TOYOTA MOTOR CORPORATION Programming Contest 2023#2 (ABC302) Announcement, 11 months ago
0
Thanks mate. |
On
chokudai →
TOYOTA MOTOR CORPORATION Programming Contest 2023#2 (ABC302) Announcement, 11 months ago
0
Hi can you share the intended approach for this problem(problem F).I saw in japanese editorial like some super vertex kind of stuff but it's hard to properly understand from it even with google translate. |
0
One case is that when the maximum element which is n is not on the index 0.In that case you can bring n to index 0.The other case is that when n is on the index 0.Then whatever operation you perform n can't remain on index 0.So then we will bring n-1.Instead of doing casework for the 2 cases separately,we check both and take the best answer.Hope it helps. |
+3
First let's say maximum element={n if a[0]=n else n-1} Let indexMaxi=index of maximum element. fix r once as indexMaxi and once as indexMaxi-1. iterate over all l and choose the best answer. O(n^2) simple ,for O(n) you have to consider cases (I was getting frustated figuring out each edge case)... Solution |
+5
See it this way:- D and E are of same points. |
-9
Is G2 based on the fact like finding all unique GPs of common ratio upto 30 then doing some trick(no idea) to find GPs of ratio greater than 30 also using the GPs of common ratio upto 30? |
+1
Congrats bro. |
On
chokudai →
Tokio Marine & Nichido Fire Insurance Programming Contest 2023(ABC 299) Announcement, 12 months ago
0
Problem G is a nice implementation problem |
0
You should have asked Um_nik directly.Why shitpost! |
0
Thanks a lot :) |
+8
How to solve Make It Zero?are there any edit__orials for the round? |
0
My O(nlog^2(n)) solution to problem E using small to large merging technique. Implementation |
0
Here is the testcase 1 2 1 0 2 1 -2 1 |
0
Thanks bro,the error was in the part where I was making sqrt(ac) using b_search function and then multiplying by 2.Instead I should have done sqrt(4*a*c) because the former one resulted in loss of some decimal values which could have been important. |
0
I got FST in problem C. Here is the submission. Used my own b_search to calculate sqrt instead of builtin functions. Still FSTed lol.Any idea? |
0
I think E can be solved using the small to large merging technique. |
0
Yes problem D looked like a cool dp problem... |
+14
Team: 'Blitzkrieg Boys' from NIT Kurukshetra Members: MasterRayuga,deepak_changoi,Dontony Regionals: Qualified for Kanpur — Mathura, Location : Mathura Preferences in problemset: Balanced contest. |
0
Can you share some resouces for learning flows?I want to upsolve this problem. |
0
My clean O(n*k) dp approach for problem D not involving any casework for positive and negative x. Link |
+2
O(n) solution for problem C. https://codeforces.com/contest/1794/submission/196020227 |
+3
How many people will be selected for onsite round? |
+1
Excited... |
0
This is dangerous bro...I hope codeforces finds out a way to remove this possibility. |
0
This will be my last year participating in this contest probably really hoping that it happens. |
0
Missed the last condition in G |
+11
I think that was a joke... |
0
This much hard university interview... |
On
Updown →
"I could have gotten that if I just had more time", How to get those points!, 16 months ago
+10
Subscribed. |
0
Go to edu section of Codeforces.It has really good explanation and problems on binary search |
0
Is square root decomposition the intended solution for problem F? |
0
Was D related to some kind of dp? |
+10
The problems were really great.We loved to solve them.But why there is no option for upsolving? |
0
Can you share your code please? |
0
Did you got ac with that? I got WA with this approach. |
0
Yupp,I also got it now. But this would be pretty much implementation heavy right? Storing how many subarrays ,prefix, suffix, sum modulo 3 for that range for each 0,1 and 2 |
0
I also had similar issue with problem B.I converted the recursive soln to non recursive using two stacks(postorder traversal) but sadly after 14 mins contest ending. |
0
Thanks,got it now. |
0
Maybe you have to do the same thing after 2 hrs in this contest(considering the difficulty of global round). |
0
Thanks. Totally understood. |
0
From the editorial can anyone explain that in the ith timestamp why every unvisited node (upto i-1 th timestamp) is visited atmost once? Let's assume that the operation is t=1 and "no" is an unvisited node upto i-1 th timestamp.Then "no" can get visited from no-x,no-2*x,no-3*x.... (assuming all of them have been visited upto i-1th step). I am telling this according to the solution given in the editorial. Can anyone please tell me where I am wrong? |
0
Thanks. |
0
Thanks. |
0
Can C be solved using iterative dp? |
+7
Same happened with me in sublime .It was not able to produce output on the testcase 500 250. I checked in custom invocation of cf and there it ran perfectly. |
+2
Try to reduce the for loop inside the recursive function to one or two recursive calls. |
0
Can anyone tell how to solve C using iterative dp? |
0
The mistake was different. I was computing the lca wrongly.But anyways I will keep your adivice in mind.Thanks. |
0
Thanks bro a lot. I got rid of the MLE thing. |
0
Solution for C using seg tree:- https://codeforces.com/contest/5/submission/110141648 |
+4
Thanks, uninstalling the antivirus worked. |
0
Thanks. |
+9
I think it's broken again. |
+15
Yes, I too get stuck in critical observation type problems. Any help on how to improve on problems like that(B of today's contest for example) is appreciated. |
0
Thanks for the reply. |
0
You shouldn't make fun of someone who is trying to improve. |
0
You know most probably I think. |
0
Its not working bro. |
0
Yes you are right. Actually facing this thing from the last Div 3 round. |
0
Okk.Thanks for the reply. |
0
Right now I am solving 1500-1800 rated problems in Codeforces. I think it helps a lot. Previously I solved problems from Leetcode, but to become better at Codeforces, according to me, solving problems from Codeforces is better. |
0
I am also now doing the same practice. Thanks for the reply. |
0
Try to solve standard problems on dp. If not able to solve, understand it properly and solve some similar problems. Solve 50+ problems(if totally uncomfortable) and you will be good to go. |
0
Can anyone help me where my code fails for B. Link:- https://atcoder.jp/contests/arc108/tasks/arc108_b |
0
There is no option to delete the comment.Srry. |
0
Okk. |
-19
I tried E with some precomputation.My time complexity is O(N^2). 5 pass.But it failed the test case 11. |
0
I am interested(if you consider a specialist). Note:-Please consider. |
+3
Can anyone tell what is wrong in this code. for B. Link:- https://codeforces.com/contest/1406/submission/92640232 |
0
Thanks a lot brother. |
0
Bro it can be checked.I couldn't solve it during the contest,but after the contest I upsolved it. |
0
First sort the and then continue extracting elements from the back. |
0
Yah I got it bro.Thanks for the test case.It also fails for the this test case also:- 3 2 3 10 128 130 137. |
0
By now,I know that one among c[i..n] is maxi.So I checked that for a particular i, for which value of a[i]&b[j],the OR with maxi comes out to be minimum.That's it. |
0
I have a better approach for Div 2 C.For each a[i],find the minimum value of c[i].Then find the maximum among all the c[i].Now brute force this maxi with all possible a[i]*b[j] to get the ans. Time complexity(O(n*m)). Link to my submission:- https://codeforces.com/contest/1395/submission/89722222. Think a little bit and you will get why it works. |
0
Ok bro,no problem.Thanks for your efforts btw.With your permission should I explain my approach? |
0
Can you please check my latest submission on my account.Please! |
0
Auto comment: topic has been updated by Dontony (previous revision, new revision, compare). |
+8
You can use CF predictor to reduce your mental harrassment |
0
Bro try passing the string by reference.I also had the same problem.It worked for me. |
0
Bro I actually got it,by passing the string by reference. |
0
Bro can you please tell me why my this solution got TLE. Link:- https://codeforces.com/contest/1385/submission/87166057 |
0
I also have the same doubt bro,though I am not able to get accepted till now. |
On
MikeMirzayanov →
Codeforces: Soon We Will Change the Rating Calculation for New Accounts, 4 years ago
0
Very good step. |
-75
Not excited |
0
It worked by declaring the array as global.Thanks! |
0
Thanks a lot! |
0
Thanks a lot Sir.It worked. Can you please why it was getting TLE- https://codeforces.com/contest/1336/submission/77683830 and now got accepted- https://codeforces.com/contest/1336/submission/77685443 |
0
Auto comment: topic has been updated by Dontony (previous revision, new revision, compare). |
+2
You are right |
0
Thanks a lot.It would be really nice of you if you help newcomers like me. |
+1
Ok Sir.No problem.By the way,I came to know that you are from Calcutta.I am also from West Bengal.Can you please give me some suggestions on how to improve my rating? |
+3
I am willing to practice with you daily.But my rating point is 1360 as I have started CP only 3 months ago(1st year of college).Will you please consider me? |
Name |
---|