i can't change my cf password and my main was hacked!
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | jiangly | 3631 |
| 4 | Kevin114514 | 3574 |
| 5 | maroonrk | 3521 |
| 6 | strapple | 3515 |
| 7 | Radewoosh | 3461 |
| 8 | tourist | 3428 |
| 9 | turmax | 3378 |
| 10 | Um_nik | 3376 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 161 |
| 2 | adamant | 147 |
| 3 | Um_nik | 145 |
| 4 | Dominater069 | 142 |
| 5 | errorgorn | 140 |
| 6 | cry | 138 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 10 | soullless | 133 |
i can't change my cf password and my main was hacked!
I have a question that I can't understand.
Solution said we should iterate x which is the number of subarrays with maximum sums that we will use. But what will we do if we have two subarrays with equal sums?
for example
4 3
-11 16 -11 -1
We will choose 16 for sure. Then we have two options. One is -11 16 and 16 -11 -1, the other is 16 -11 and -11 16 -11 -1. The first one has a better answer.
izban proved that if some pair of subsegments have same sum, it doesn't matter when we choose first $$$k - n$$$ subarrays. But his proof is not correct when we choose $$$ \gt k - n$$$ subarrays.
Many participants use std::map in their codes.
If the type of the key is int, it will be hacked by this:
2
2 1 2
10 0 1000000000 999999999 999999998 999999997 999999996 999999995 999999994 999999993 589934621
Because (int) 4294967296LL == 0
One day when I had my math class,I came up with an idea.But I found that I can't solve it.
After class I asked many people but they did't solve it too.
Here's the problem:
You are given a undirected weighted graph with n nodes and m edges.
You need to find a simple path from 1 to n to maximize the maximum value of edges in the path minus the minimum one.
A simple path means that you can't pass through one edge twice or more.
(I don't know how large n,m can be)
Update:Thanks to TimonKnigge,we can solve it in $$$O(m^2 \times n^3)$$$
| Название |
|---|


