anhxinloie's blog

By anhxinloie, history, 3 months ago, In English

how to code this problem: https://dmoj.ca/problem/2drmq

i mean that i dont understand the init function

can anyone explain?

  • Vote: I like it
  • -4
  • Vote: I do not like it

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

The init function is for you to prepare anything that could process the queries. Eg. a sparse table.

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

adu orz

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

there's literally an editorial by wesley