Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

maxorand's blog

By maxorand, history, 7 years ago, In English

I can judge my code if I have the judge datas with me in Linux by keeping all *.in, *.out and main.cpp code file in one folder and run this Untitled command in the terminal. But how can I do this type of things in Windows, in CMD or something like this? Is there any equivalent code for the above one? If anyone knows, please share. :D

Full text and comments »

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

By maxorand, 7 years ago, In English

If the given array's size is N then what should I declare the size of the array for Segment Tree?

If I set the Segment Tree's array size to 2 × 2k (or maybe something like this 2 × 2k + 5) where k = ⌈ log2N, won't that be enough? If not, then why?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it