anhxinloie's blog

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

| Write comment?
»
2 years ago, hide # |
 
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 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

adu orz

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

there's literally an editorial by wesley