Help with a Partial Sum problem + ask for similar problems .

Revision en2, by EbraM96, 2017-02-26 19:43:48

I've been reading this great blog and tried to solve B. Troynacci Query but I couldn't :( . I already tried reading its editorial but it contained the equations directly for coding ! I couldn't understand how the equations were derived , and please :

A- I need help to solve the above problem .

B- Can I do all operations and apply modulo at the end when printing only , like :

print : OUTPUT%mod ?

C- I need problems like this to solve .

Tags partial sum, tree, queries


  Rev. Lang. By When Δ Comment
en2 English EbraM96 2017-02-26 19:43:48 3 language mistake
en1 English EbraM96 2017-02-26 19:41:08 601 Initial revision (published)