Zhanibekkk's blog

By Zhanibekkk, history, 6 years ago, In English

Are there any drawbacks in usage of deque instead of vector

Full text and comments »

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

By Zhanibekkk, history, 6 years ago, translation, In English

Is it possible to write Fenwick tree for sum in segment and for update(+val) in segment? And is it optimally?

Full text and comments »

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

By Zhanibekkk, history, 6 years ago, translation, In English

I have a lot of files named with sample numbers 1, 2, 3 and so on. In this files there are two integers a and b. And I should print a+b. And output should be in files such as 1.a, 2.a, 3.a etc.

Please, help me or send me correct code. Code;

This code create answer for 1st file. But for others, outputs answer of 1st file too.

P.s. Sorry for my English.

Full text and comments »

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