lotto专题

poj 2245 lotto

题目链接:http://poj.org/problem?id=2245 本题属暴力搜索(递归)。 注意两个点:第一:每组测试数据后都要有空行,除非下次输入k=0。第二:输出结果时每一行的最后一个数的后面不能带有空格。 源代码: #include <cstdio>#include <cstring>#include <algorithm>const int p=50;int a[

使用STL输出组合序列 + UVa 441 Lotto

http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=382 /*0.009s*/#include<bits/stdc++.h>using namespace std;const int mx = 15;int a[15];