| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Kevin114514 | 3722 |
| 2 | Benq | 3676 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3196 |
| 10 | idontwannadothis…e | 3191 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | maroonrk | 153 |
| 2 | Qingyu | 152 |
| 3 | nik_exists | 151 |
| 4 | AmShZ | 147 |
| 4 | maspy | 147 |
| 6 | Um_nik | 143 |
| 7 | Errichto | 139 |
| 8 | adamant | 136 |
| 9 | BledDest | 134 |
| 10 | AksLolCoding | 132 |
|
0
Instead of direct solutions some hints would have been better. Anyways nice problems and quick editorial! <3 |
|
0
Spent the whole time optimizing my indexed_multiset in C, only to realise just after the contest that binary searching the answer is sufficient. :( Nice bugaboos btw! |
|
0
Logic of my submission is also similar, just instead of free bits I put 1 at each such position. Can it be hacked? |
|
+12
Travel parallel to x-axis first to reach the x coordinate and then travel parallel to y-axis or vice-versa to reach the final destination. This way it can be done in at max 2 moves |
|
0
Can you please explain how that is fast enough in bit more detail |
|
0
Wonderful analogy! |
|
+3
No they wont be. Why? Look, consider any row whose corner is not connected. Lets say it is row B and its left corner is not connected. Now, if the leftmost connected system of row B is broken than any computer left of that broken computer would not be a part of combined network anymore. Hope it helps :) |
|
+3
No it is not necessary. Reason If the leftmost or rightmost connected computer of any row is broken further left or right computers respectively wont be part of combined network. Hence corners must be connected to other row. |
|
+4
Actually it was not so unfair since you required just one observation for C. Hint For optimum result, it is necessary to connect the corners of both networks a and b to some computer of opposite row. Reason If the leftmost or rightmost connected computer of any row is broken further left or right computers respectively wont be part of combined network. |
|
0
Thanks for that |
|
0
Same here. Tried different greedy approaches. Even my code works for the mentioned case. Sometimes you just dont know what you are missing. But yeah the brute force approach was cool. |
|
0
Break condition is required when we have painted either all the rows or all the columns since after that final colour of a query would remain same. Remember Queries are being processed backwards |
|
+3
Just naming a container as dp doesn't make the solution be a dp solution! |
|
+1
Was stuck in C for quite some time. Dropping by few hints for whosoever interested Hint 1 Find max sum of subarrays of length 1 to n Hint 2 Add x to as many distinct elements you can in max sum subarray Hint 3 Find maximum of 0 and the values obtained |
| Название |
|---|


