Are there any drawbacks in usage of deque instead of vector
Are there any drawbacks in usage of deque instead of vector
Возможно ли написать Дерево Фенвика для суммы на отрезке и с прибавлением на отрезке? И оптимально ли это?
Что лучше segment tree(дерево отрезков) для максимума/минимума или sparce table(разреженная таблица)? И почему?
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. My Code;
This code create answer for 1st file. But for others, outputs answer of 1st file too.
P.s. Sorry for my English.