| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | jiangly | 3670 |
| 3 | Kevin114514 | 3657 |
| 4 | maroonrk | 3355 |
| 5 | Um_nik | 3353 |
| 6 | squareOf105 | 3346 |
| 7 | tourist | 3343 |
| 8 | strapple | 3324 |
| 9 | heuristica | 3322 |
| 10 | jiangbowen | 3291 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | AmShZ | 143 |
| 4 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | adamant | 137 |
| 8 | BledDest | 134 |
| 9 | maroonrk | 133 |
| 10 | qwexd | 130 |
|
0
I haven't yet looked into problem B. But, if you know in advance the parameters for which the recursive function will be called, then you can call it pro-actively. desti(10000) may NOT work. But you can call 100 at a time as following: |
|
+8
The O(1) solution explanation for the first one — Robot cleaner is awesome! Also in the pascal solution, I appreciate the usage of the function solve_single. |
|
0
I'm trying to solve problem D in the following way: After getting max value by querying N nodes, query for N/2 nodes. If the ans is less than max, then remove all the edges which are made up these nodes at both the ends. If the ans is max, then keep all the edges which are made up these nodes at both the ends, remove other edges. With the help of remaining edges, again figure out N/4 nodes, and query it. Keep going this way, and in the end, only one edge will remain. Any issue with this approach? The solution is failing : https://codeforces.me/contest/1592/submission/130812435 . Is there a logical bug or an implementation bug? |
| Название |
|---|


