VirtualDimension's blog

By VirtualDimension, history, 2 months 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?

Read more »

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