VirtualDimension's blog

By VirtualDimension, history, 4 years ago, In English

f(l, r) = max(al,al+1...ar), g(l, r) = min(al, al+1...ar)

How can i calc ∑∑f(l,r) * g(l,r) mod 1e9 + 7?

Full text and comments »

  • Vote: I like it
  • -9
  • Vote: I do not like it