728x90 mergesort1 [C++][백준] 10090 Counting Inversions 이번 문제는 병합정렬(Merge sort)를 이용해서 해결하는 문제입니다. 문제A permutation of integers from 1 to n is a sequence a1, a2, ..., an, such that each integer from 1 to n is appeared in the sequence exactly once.Two integers in а permutation form an inversion, when the bigger one is before the smaller one.As an example, in the permutation 4 2 7 1 5 6 3, there are 10 inversions in total. They are the following pairs: 4.. 2024. 7. 10. 이전 1 다음 728x90 반응형