2011年9月23日

poj1804逆序数

摘要: 冒泡求逆序数View Code #include <iostream>#include <stdio.h>using namespace std;const int N=1001;int m[N],s[N];int main(){ int t,n,i,j,sstep,mstep,tmp,cnt=1; bool flag=false; scanf("%d",&t); while(0 <= --t) { scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d&qu 阅读全文

posted @ 2011-09-23 10:51 buptLizer 阅读(201) 评论(0) 推荐(0) 编辑

导航