136 人解决，226 人已尝试。
149 份提交通过，共有 1037 份提交。
4.2 EMB 奖励。
单点时限: 4.0 sec
内存限制: 256 MB
You want to process a sequence of distinct integers by swapping two adjacent sequence elements until the sequence is sorted in ascending order.
There are several test cases, please process till
For each test case, the first line contains integer . The second line contains space-separated integers .
For each test case, output the minimum times of swapping in one line.
2 1 2