Sum of inversions from a to b

Правка en1, от Sammmmmmm, 2023-07-10 06:20:12

Given two permutations a and b of n elements.

Find the sum of inversion for each permutation that whose lexicographical value is between a and b mod = 1e9 + 7.

N <= 200000

Thanks in advance!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Sammmmmmm 2023-07-10 06:20:12 231 Initial revision (published)