2012年10月20日

poj 1256 全排列

摘要: 第二次做全排列的题了,又有了不小的收获,c++中有专门做全排列的函数next_permutation();所以方便了不少;在STL库中;#include<iostream>#include<algorithm>#include<string>#include<cctype>using namespace std;bool cmp(char a,char b){ if(tolower(a) == tolower(b)) //tolwer()函数作用是将大写字母转变为小写字母 return a < b; else return tolower( 阅读全文

posted @ 2012-10-20 20:04 元点之始 阅读(278) 评论(0) 推荐(0) 编辑

导航