题目链接:http://poj.org/problem?id=2299 题意就是求把数组按从小到大的顺序排列,每次只能交换相邻的两个数, 求至少交换了几次 就是求逆序数 #include<stdio.h> #include<string.h> #include<algorithm> #define Read More
posted @ 2015-08-09 18:31 西瓜不懂柠檬的酸 Views(188) Comments(0) Diggs(0)
levels of contents