Im_hear

导航

2012年4月21日

zoj 1188

摘要: 就像别人说的,这题可以很长,可以很短;可以高效,可以低效。有什么参考点,就是逆序数的求法吧。source code 阅读全文

posted @ 2012-04-21 10:32 Im_hear 阅读(118) 评论(0) 推荐(0) 编辑

zoj 1188

摘要: View Code 1 #include <cstdio> 2 #include <iostream> 3 #include <algorithm> 4 using namespace std; 5 #include <string> 6 7 const int N = 110; 8 string str[N]; 9 struct info{10 int strid,invers;11 }inversions[N];12 13 14 void solve(int n,int m);15 int get(char c)16 {17 int ret 阅读全文

posted @ 2012-04-21 10:16 Im_hear 阅读(177) 评论(0) 推荐(0) 编辑