Please read the new rule regarding the restriction on the use of AI tools. ×

anhxinloie's blog

By anhxinloie, history, 2 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

»
2 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.

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

adu orz

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

there's literally an editorial by wesley