This problem is rated 2000, and yet no-one could solve it in official div1 + div2 round, is this a bug or is this task actually not that difficult?
# | User | Rating |
---|---|---|
1 | tourist | 3856 |
2 | jiangly | 3747 |
3 | orzdevinwang | 3706 |
4 | jqdai0815 | 3682 |
5 | ksun48 | 3591 |
6 | gamegame | 3477 |
7 | Benq | 3468 |
8 | Radewoosh | 3462 |
9 | ecnerwala | 3447 |
10 | heuristica | 3431 |
# | User | Contrib. |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 165 |
3 | Dominater069 | 160 |
4 | atcoder_official | 159 |
4 | Um_nik | 159 |
6 | djm03178 | 154 |
7 | adamant | 153 |
8 | awoo | 148 |
8 | luogu_official | 148 |
10 | TheScrasse | 146 |
This problem is rated 2000, and yet no-one could solve it in official div1 + div2 round, is this a bug or is this task actually not that difficult?
The fastest implementation which i can find is $$$O(p + log_p n)$$$ from here
But from what I have heard there is a faster way of calculating it which might lead to the solution of this problem
Does anyone have a code implementation of it? (Since I can't find it anywhere on the internet)
Name |
---|