how to code this problem: https://dmoj.ca/problem/2drmq
i mean that i dont understand the init function
can anyone explain?
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3773 |
3 | Radewoosh | 3646 |
4 | ecnerwala | 3624 |
5 | jqdai0815 | 3620 |
5 | Benq | 3620 |
7 | orzdevinwang | 3612 |
8 | Geothermal | 3569 |
8 | cnnfls_csy | 3569 |
10 | gyh20 | 3447 |
# | User | Contrib. |
---|---|---|
1 | cry | 161 |
2 | maomao90 | 160 |
3 | awoo | 159 |
4 | atcoder_official | 157 |
5 | -is-this-fft- | 155 |
5 | nor | 155 |
7 | adamant | 153 |
8 | maroonrk | 152 |
8 | Um_nik | 152 |
10 | djm03178 | 146 |
how to code this problem: https://dmoj.ca/problem/2drmq
i mean that i dont understand the init function
can anyone explain?
Name |
---|
The init function is for you to prepare anything that could process the queries. Eg. a sparse table.
can you tell me more about the details?
See this article: https://mirror.codeforces.com/blog/entry/45485. It's a sparse table but with 2 layers.
adu orz
there's literally an editorial by wesley
can you give the link?
https://dmoj.ca/problem/2drmq/editorial
no i mean the coding detail not the algorithm