CSES Pizzeria Queries

Revision en4, by kgargdun, 2021-01-18 14:32:03

Hi, I am on my adventure to solve CSES problem set. I found this nice editorial for Range Query section here

But i guess some new problems were added or were skipped there. I am struggling in one such problem. here Any hint/approach will be highly appreciated!

EDIT: Yay AC ! I tried to code it as simple as possible.

AC solution
Tags #range query, #cses


  Rev. Lang. By When Δ Comment
en4 English kgargdun 2021-01-18 14:32:03 2 Tiny change: ', 0, n-1, 1, a-1, 1);' -> ', 0, n-1, 0, a-1, 1);'
en3 English kgargdun 2021-01-14 00:23:39 3 (published)
en2 English kgargdun 2021-01-13 20:41:16 3392 Tiny change: 'preciated!' -> 'preciated!\n\n\n<spoiler summary="AC solution">\n...\n</spoiler>' (saved to drafts)
en1 English kgargdun 2021-01-13 19:19:32 369 Initial revision (published)