this problem killed me... can anyone help me with it ?
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3885 |
3 | jqdai0815 | 3682 |
4 | Benq | 3580 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3506 |
7 | ecnerwala | 3505 |
8 | Radewoosh | 3457 |
9 | Kevin114514 | 3377 |
10 | gamegame | 3374 |
# | User | Contrib. |
---|---|---|
1 | cry | 170 |
2 | Um_nik | 162 |
3 | -is-this-fft- | 161 |
3 | atcoder_official | 161 |
5 | djm03178 | 157 |
6 | Dominater069 | 156 |
7 | maomao90 | 155 |
8 | adamant | 154 |
9 | luogu_official | 153 |
10 | awoo | 152 |
Name |
---|
Here is the outline of the solution.
This allows us to use binary search !
Now, we need a way to answer the following question — Given a time t, how do we find out who is ahead ? Once we know the answer to this question, we simply binary search over time t.
Now, Alexander will simply have c — t at time t.
What about Arthur ?
The value of a decreases by the number of times b falls below w.
Búsqueda binaria.