In the problem tag it is mentioned that it can be solved using binary search.How to solve it using binary search ? https://codeforces.net/contest/1283/problem/D
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3803 |
2 | jiangly | 3707 |
3 | Benq | 3627 |
4 | ecnerwala | 3584 |
5 | orzdevinwang | 3573 |
6 | Geothermal | 3569 |
6 | cnnfls_csy | 3569 |
8 | Radewoosh | 3542 |
9 | jqdai0815 | 3532 |
10 | gyh20 | 3447 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | awoo | 163 |
2 | adamant | 161 |
3 | maomao90 | 160 |
4 | maroonrk | 152 |
5 | -is-this-fft- | 151 |
6 | nor | 149 |
7 | atcoder_official | 147 |
7 | SecondThread | 147 |
9 | TheScrasse | 146 |
10 | Petr | 144 |
In the problem tag it is mentioned that it can be solved using binary search.How to solve it using binary search ? https://codeforces.net/contest/1283/problem/D
Название |
---|
Please don't down vote .Don't make me sad during new year time .... If you give answer you are santa for me.
See: https://codeforces.net/blog/entry/72592
It shows a simpler(?) solution than binary search
Edit: Not sure how you would use binary search
Also, don't use unordered_map or unordered_set because you will get TLE on test 6. Use map or set instead.