Reminder: in case of any technical issues, you can use the lightweight website m1.codeforces.com, m2.codeforces.com, m3.codeforces.com. ×

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