摘要:
题目链接地址:http://ac.jobdu.com/contest.php?cid=1039用stl中的next_permutation()函数,它的作用是如果对于一个序列,存在按照字典排序后这个排列的下一个排列,那么就返回true且产生这个排列,否则返回false。调用之前先把一个序列排序使之为有序序列代码1:#include<cstdio>#include<cstring>#include<algorithm>using namespace std;int main(){ //freopen("12.txt","r&quo 阅读全文
posted @ 2012-10-16 17:18
sorryhao
阅读(523)
评论(0)
推荐(0)

浙公网安备 33010602011771号