| # | 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 |
|
0
On registration page there is "Read the details in this post.", but post is inaccesible |
|
+22
|
|
+3
thanks! |
|
+30
YES NO forces |
|
+3
just found this submission for D, and to me it seems very random. Can anybody explain why this part is correct (if it is) |
|
+3
1000000 1 1000000 1 1000000 1... causes tl for solutions that try to linear search next year every time |
|
+29
for (auto &i : mp), you just make a copy every time |
|
0
Nice idea! |
|
0
Yeah, it is confusing. But you can choose subsegment of length 1 if a[i] <= k |
|
On
codesniper99 →
Does only studying Segment tree cover all Range query questions? (URGENT ANSWER Reqd., TY!), 3 years ago
0
haha, for me it's much easier, but there're also short implementations of segment tree, so idk, let it be 100% faster =D. If you are in rush, then no worries about it, but of course I recommend you to learn it after, it's very cool data structure! |
|
On
codesniper99 →
Does only studying Segment tree cover all Range query questions? (URGENT ANSWER Reqd., TY!), 3 years ago
0
neutral is such element A that for any B, A*B = B. 0 + 5 = 5, or min(INT32_MAX, 5) = 5 for example. Yes segment trees can solve all of BIT problems, BIT is just easier to implement and faster. |
|
On
codesniper99 →
Does only studying Segment tree cover all Range query questions? (URGENT ANSWER Reqd., TY!), 3 years ago
0
There're a lot of quieries you can come up with and a lot of data strucutures for theses quieries. Segment tree supports all associative operations with neutral element. Fenwick Tree (BIT) supports only subset of these operations |
|
+3
Great contest! 2 problems with hello world solution is insane :D |
|
+41
in problem C you need to make some observations before that, so no |
|
+6
"rooms" are made to prevent it |
|
0
I think answer is Infinity if sum of min(n, d) greatest A[i] >= C since we still can do different tasks |
|
0
That is not true actually, atleast when using operator[] instead of .at() |
|
0
Because of poor default hashing function. If you wanna use unordered_map or other data structures which are using hashing, write your own randomized hash function so it will be much harder to create such bad test-case for it. In this particular problem complexity nlogn of map is good enough to pass. |
|
0
Try this: setvbuf(stdout, nullptr, _IOFBF, BUFSIZ); |
|
+6
I've played a bit with your code, and if you make #define double long double , it outputs correct answer on both compiliers. So, probably, there're some differences in the floating point treatment. |
|
+4
If you are stuck for a log time, you can try binary search |
| Name |
|---|


