| # | 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 | 157 |
| 2 | maspy | 150 |
| 3 | Um_nik | 145 |
| 4 | Errichto | 139 |
| 5 | adamant | 136 |
| 6 | maroonrk | 134 |
| 7 | DNR | 133 |
| 7 | nik_exists | 133 |
| 9 | AmShZ | 130 |
| 10 | Dominater069 | 129 |
|
0
Spoiler i also wasted 1 hour 27 min with this logic actually lets see this for K = 3 let suppose u are putting 5 at first position so you are saying 1 0 1 1 0 1 1 1 1 0 1 1 5 2 7 7 1 time 5 .... 1 time complement of 5 which is 2^k-6 and n-2 times 2^k-1 and you are doing some pnc right this is correct but there are more cases as well which u didn't considered my friend just like this 1 0 1 1 0 1 1 1 1 1 0 1 5 3 6 7 and is still zero sum is still maximum but you find a new ordering which is valid but u didn't considered it because no two elements have and zero so i hope u got something why u r wrong here |
|
0
(2^k-1)*(n-1) |
|
0
yeah thanks for amazing insights... i also feel like this approach is mostly correct... but definitely added this type of thinking in my thinking set(thanks for this). |
|
+1
In problem B its N^K i guess not K^N Fix it |
|
+10
This Contest Goes too bad for those who don't know how to search on google while contest is running. |
|
0
can u explain for the same. i am noob at math or number theory |
|
+3
how to solve C? |
|
+226
|
|
-16
what about score distribution? |
|
-23
We Want vovuh in upcoming div3 rounds :P |
|
0
can you explain div2 B,C? |
|
0
hardforces!! ( atleast for me don't know about others ) |
|
0
here you got +26. ratings are like a roller coaster sometimes up sometimes down. |
|
-26
[DELETED] |
|
0
now i know the basic O(N^3) solution with help of some and your comments. can you explain how to reduce it to O(N^2) time complexity? |
|
+3
someone please Explain C ..... the editorial is too complex at least for me |
|
0
how to solve C? it didn't get the editorial nor the comments. can someone explain it breifly? |
|
+32
solve problems with difficulty level ( your current rating + 200 ).try this you will see change very soon. |
|
0
thanks for your efforts but after giving 2.5hours+ still i am not comfortable that how this is working ..... i know this is a valid pattern but unable to answers whether i can think this on my own in or after contest.. at the end ..... waiting for editorial....... |
|
+7
how to solve C |
|
-89
Thanks for stolen problem as well. for reference : https://www.geeksforgeeks.org/find-local-minima-array/ |
|
0
is there any prizes? |
|
0
can someone explain where i am wrong in Probem E i am getting WA on test 5 although i did similar as mentioned in editorial. |
|
0
yeah just got it thanks!! |
|
0
yeah just got it thanks!! |
|
0
are u serious Ashishgup? |
|
0
can someone explain Problem E i didn't get what editorial wants to say |
|
+3
Thanks Ashishgup for such an amazing contest!! liked problemset |
|
0
Thanks :P |
|
0
Thanks :P |
|
0
Thanks :P |
|
0
what is proof of using fibonacci pattern in problem D |
|
0
Can someone explain the logic behind using fibonacci pattern in problem D |
|
0
Yes i got it Sir :) Thanks for such a amazing explanation. |
|
0
Thanks i got it now :) |
|
0
I am talking ABOUT XOR TREE PROBLEM |
|
0
i didn't got what is a+b or what does these inequalities say?? can you explain little more?? |
|
0
can you tell me why resulting graph do not contain cycle?? |
|
0
I know a lot of people solved C. But for Those who are unable to think why greedy works or unsatisfied with editorial can read this :) so we have to fill our knapsack such that sum(wt)<=w and sum(wt)>=(w+1)/2. let say there is one element which is satisfying above condn output that. otherwise elements are present in combo of ai < w or ai > w now do you want to include an item which has size > w in knapsack?? no because taking that in any situation will deny our requirements so let's shrink the array to only those elements which has size<w/2 Now we have all elements < w/2 if sum of all remaining elements <w/2 that means we can't make req. config output -1 now there is always a way to make sum>=(w+1)/2 and sum<=w how?? sort it. iterate in reverse manner. stop where sum>=w/2. now why let define number line as ----region1-----w/2----region2------w---region3------- now if we are on region 2 we are ok output now many of you are thinking it may be possible we are at end of region 1 and some number comes and we promoted to region 3 right?? so my dear friend promoting from region 1 to region 3 requires w/2+something value which is not present in our array. because if it was there we can output that :) If something is still unclear let me know :) |
|
0
Thanks, when there is so simple explanation written by slycelote then why people are not writing just this. in two lines i got the whole logic behind this. Thanks again |
|
0
Perfect!! 4 years old comment still helps!!. Thanks Mucosolvan |
|
+3
it is better to drop problem link so that we can land over there. |
|
+1
Perfect. but it is hard to come up with a solution like this At least for me in contest time or may be after that :). |
|
+3
true :( |
|
0
Thanks, i have one doubt why you did summation in last 3rd line?? |
|
+8
Perfect!! Thanks ExplodingFreeze. |
|
On
Golovanov399 →
Codeforces Round 679 (Div.1, Div.2) and Technocup — Elimination Round 1, 6 years ago
0
what is wrong with this approach for problem D we will fill the value in increasing order for example if we have queries like + + 2 + 1 + 3 + 4 bla bla bla so for (first 2 pluses ) we will assign 2 and 4 next we will assign 1 and so on but this gives wrong answer can anyone explain. |
|
0
Got it by Offline. if you have another way Please Make sure to share it :P |
|
-23
Weak Pretests, Long Queues, Unexpected Errors and Rated :(. Make it Unrated :P |
|
On
Vladik →
Codeforces Round #678 (Div. 2) based on Final Andersen Programming Contest 2020, 6 years ago
+15
Weak Pretests, Long Queues, Unexpected Errors and Rated :(. Make it Unrated :P |
|
0
can you tell me why?? i am looking for such a comment. |
|
0
Thank's i Got it |
|
On
Greatest789 →
How to solve this array based problem ? | Unsolved since 5 years | Try it , 6 years ago
0
can you provide link for question 1 |
| Name |
|---|


