| # | 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 | 141 |
| 5 | Errichto | 139 |
| 6 | adamant | 137 |
| 7 | AmShZ | 135 |
| 8 | BledDest | 132 |
| 9 | maroonrk | 131 |
| 10 | qwexd | 129 |
|
On
Baba →
CodeCraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined) Editorial, 10 years ago
0
is not a good idea. |
|
+30
Another solution of problem D. We use sweep line with events {segment_start, segment_end}. When segment starts we increase arr[pos_l]++, and when segment ends we decrease arr[pos_l]--. To find the answer, we need to check the k-th left-started segment in our array, each time for every event. If we are in pos and have segments_cnt >= k, we know that each of them has end-point >= pos, so our goal is to find k longest segments and answer is pos — po_l[k-th segment]+1. To implement arr[] we can use sparse segment tree. Code |
|
+12
Why does javacoder submit c++ solution? |
|
0
Another (more complex) idea of problem E. |
|
+7
Especially before submit during rated contest :) |
|
+3
Same story about problem C. Solution was correct, but final cycle to find minimum value from last colors was from 1 to n instead of m. |
|
0
Even for magic, 'cos 300^4 is 81*10^8 |
|
0
It's a good question :D But TLE on 16 pretest |
|
+6
Segment tree on each row to find minimal value |
|
0
I wrote solution in O(n*m*n*log(m)). But it's not fast enough :( |
|
0
if(a < b) answer isn't zero. For example, 5!/6!(mod 1e9+7) = 36166666920 |
|
0
How to build segtree in O(n) time? UPD. Yes, O(4*N) = O(N). My mistake. |
|
+2
In worst case, unordered map works in O(N) time, when ordered has O(logN). |
|
+9
How to pass test 4 in problem F? Easy problem, but I can't find bug in my code :( |
|
+15
It's not necessary to compress values of time. Check this solution. |
|
+27
Also in problem E we can create map <int, SegmentTree>, where segment tree is sparse (indexes as time and values as{-1, 0, 1}). If we have query "add/delete value x in time t", we just update tree x in position t by value 1/-1. And "count query x in time t" will be sum of tree x in segment [1,t]. Code. |
|
0
try 4 4 answer is 0 |
|
0
Rating is calculated considering time of solving and first successful attempt. And also with some special expected and real positions. To more information click in this link. |
|
0
My solution without "-1" case was accepted on pretests. Final sequence always exists. |
|
-84
It's a part of problem! You must have good English skills to understand storyline clearly. I think English tasks for Russian users will be more fair. |
| Name |
|---|


