| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3382 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 155 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 145 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 134 |
| 9 | maroonrk | 132 |
| 10 | cry | 130 |
|
0
Good job digging this post from the grave. If I'm not wrong, the intention was to identify anyone I might know who were following me and follow them in return |
|
+3
F is gonna wreck my rating. But I solved D at least ... |
|
+13
Thanks! But I don't understand why enforcing HTTPS needs to be an option |
|
0
I tried a naive solution by finding nearest and farthest radial points of the polygon. Guess there is more to it. This approach works for the illustrations |
|
+3
Will the tests which lead to successful hacks be used for system testing? |
|
-22
Chuck it. I misunderstood the question |
|
-22
The proof is simple: Assume n numbers in the array: You can prove that 1 number will be added n times 1 number will be added n-1 times and so on till 1 number will be added 1 time So you have to minimise sum,where sum = n*(a[x1]) + (n-1)*(a[x2]) + .... + 1*(a[xn]) Since we must minimise, obvious solution to sort the array and set xi = i and find sum Hope it is clear |
|
0
E was nice w.r.t the way in which DP table had to be filled :D |
|
0
No.4 cannot be expressed by your logic |
|
0
Room topper for the first time :D |
|
0
Read about Euler Path |
|
0
king_of_hackers? Probably. king_of_memes? Yeah ;) |
|
0
Hacking is my mistake, okay. But still, if 2 hacks make my score less than someone whose submission time is ages(people who submitted near end have higher points) after me, I feel there is an imbalance somewhere. |
|
+1
In my case, I solved problem A in 30 mins, which has 171 points (after conversion to 250). I missed 2 hacks , which reduces score to 71 points and puts me at the fag end of the leaderboard |
|
+6
It kind of discourages hacking and not much value for speed is given either. Difference of +100 initally due to early submission time is now like +10 or +20. But 2 faults in hacking gives -100 difference direct. |
|
+18
Scoring system is dynamic. But points deduction is absolute(-50) .. and when the score keeps decreasing, -100 pushes the score like hundreds of places behind. Please take a look Mike |
|
0
Here is my code,implementing the same, in case what is said is not clear http://codeforces.me/contest/553/submission/11751489 |
|
0
Approach to Div 1 — Problem A using pure DP: Let dp[i][j] denote number of ways to place first i balls such that ending position of i'th ball is j . Let total[] be prefix sum of number of balls upto ith color from color 1. Now to find dp[i][j], consider all values from dp[i-1][j-1] to dp[i-1][total[i-1]]. Consider one such value dp[i-1][x]. Now,we can say that all balls from position x+1 to j can be filled only using ball color i (as of now). Plus we have spaces, which are not filled by balls of colors 1 to i-1 in positions 1 to x. Total number of these voids can be found easily with prefix sum. dp[ i ][ j ] = ( Number of voids -1 ) C ( Number of balls of color i -1) We subtract 1 to indicate last ball of color i is fixed at j. We can do pascal's triangle pre computation again using simple DP |
|
0
My original code failed to decrement modify[i] whenever possible with each used stick when h[i]>=4. Everything else was in order.Thanks for pointing out Corrected code is here |
|
0
Thanks :) .. i failed to apply greedy in the sense that it would be sensible to use modified sticks first to make rectangles in place of original length sticks. |
|
+1
Problem A was awesome :) . Got my locked code hacked, but still got 700 points from hacks :D |
|
+13
Why is rating update taking so long? |
|
-13
Read the problem statement. You should not have a zero at starting index after performing inversions. 9 is not allowed as it is actually "09", which has trailing zeroes |
|
0
I got TLE in test 28 :( .. my time complexity is O(m * l * log(n)) where, l is length of string in each query. m,n are from problem statement. Can anyone explain how this doesn't run in the time limits? Upd: (m*l)<=6*10^5 (from statement) and log n cannot exceed 18 |
|
0
pretests are a bit weak, i think. I got pretests passed in my first approach where space complexity was O(n^2) [Unnecessary though] |
|
0
A hashmap is enough, given the constraints, i think. My approach uses m.log(n) |
|
+1
Hopeful of being a room winner for the first time :) |
|
0
Is a DFS tree equivalent to a Union Find structure created using given edge pairs ?I am relatively new to graphs and find them similar :) |
|
+5
And for problem "Count palindromes" , even precomputation can be simplified so as to include only the necessary 96 combinations.It can be done in O(24 * 6) time. 24 — For hours and seconds(since palindrome) while minutes can take only the values of 00,11,22,33,44,55(hence 6). Then we can simple iterate the 96 combinations and report answers :) |
|
+5
Problem J — Really good one :) .. Missed AC in contest due to slow IO :/ |
|
0
I also did the same. The number of coaches is less than or equal to 50. So O(n^2) will pass easily |
|
0
I didn't quite figure out the significance of placing the book on top after reading initially. Thanks for the answer! |
|
0
I failed to account for one or two cases where index is out of range. Problem has been resolved |
| Name |
|---|


