![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
全排列
文章平均质量分 75
wanghandou
我是个爱学习的孩子
展开
-
D的小L
D的小L 时间限制:4000 ms | 内存限制:65535 KB 难度:2 描述 一天TC的匡匡找ACM的小L玩三国杀,但是这会小L忙着哩,不想和匡匡玩但又怕匡匡生气,这时小L给匡匡出了个题目想难倒匡匡(小L很D吧),有一个数n(0,,,聪明的你能帮匡匡解围吗? 输入第一行输入一个数N(0输出按特定顺序输出所有组合。 特定顺序:每一个组合中的值从小到大排列,原创 2016-10-15 11:37:44 · 192 阅读 · 0 评论 -
Same binary weight
Same binary weight 时间限制:300 ms | 内存限制:65535 KB 难度:3 描述 The binary weight of a positive integer is the number of 1's in its binary representation.for example,the decmial number 1 has a bina原创 2016-10-15 16:08:31 · 228 阅读 · 0 评论 -
全排列
输出一个数的全排列: 在C++的标准函数库STL中,next_permutation()函数用于求数列的全排列 #include #include #include using namespace std; #include int main () { int t; cin>>t; int n; while(t--) {原创 2016-11-16 20:46:26 · 204 阅读 · 0 评论 -
Permutation
Permutation Time Limit: 1000 MS Memory Limit: 100000 K Total Submit: 87(39 users) Total Accepted: 34(34 users) Rating: Special Judge: No Description转载 2017-04-03 15:46:30 · 464 阅读 · 0 评论