|
|
вернуться в форумПоказать все сообщения Спрятать все сообщенияHint 👾_challenger128_[PermSU] 8 ноя 2020 18:46 You should find the permutation with the maximum number of inversions. You can use segment tree to calculate inversions for each element, just store sorted leafes in each node. |
|
|