Блог пользователя maxorand

Автор maxorand, история, 6 лет назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится

Автор maxorand, 7 лет назад, По-английски

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?

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится