摘要:
题目如下: 思路: 1.看清题目:每个数字保留五个场宽!意思是每个数字前面要空四个格子 2.利用c++的函数进行全排列 代码如下: #include<cstdio> #include<iostream> #include<algorithm> using namespace std; int mai 阅读全文
posted @ 2020-05-31 15:18
miao-xixixi
阅读(141)
评论(0)
推荐(0)
摘要:
1.函数原型为: #include <algorithm> bool next_permutation(iterator start,iterator end) 2.用法 (1):需要将要数字按照升序排列 (2):使用方法: #include<cstdio> #include<iostream> # 阅读全文
posted @ 2020-05-31 14:52
miao-xixixi
阅读(179)
评论(0)
推荐(0)

浙公网安备 33010602011771号