题目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3798学会了对于序列用next_permutation暴力打表可以先打表找规律#include#include#define INF 0x3f3f3f3f//#defin...
分类:
其他好文 时间:
2014-12-14 14:36:01
阅读次数:
169
DescriptionThe summer training of ZJU ICPC in July is about to end. To celebrate this great and happy day, the coaches of ZJU ICPC TeamNaviandFancydec...
分类:
移动开发 时间:
2014-12-08 22:55:31
阅读次数:
318
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3839题目大意:画脸。。每张脸是上一个脸倒过来加上眼睛。。注意n 2 #include 3 #include 4 #include 5 using na...
分类:
其他好文 时间:
2014-12-01 22:24:28
阅读次数:
193
注意到数据规模比较小(N#include #include using namespace std;int n;bool compare(vector a, vector b) { for (int i = 0; i != n; ++i) { if (a[i] != b[i]) ...
分类:
其他好文 时间:
2014-12-01 12:45:51
阅读次数:
188
依题意构造树并遍历,找出最大深度并统计#include #include using namespace std;struct Node { vector children; int depth;};Node nodes[100005];int maxDepth = 0;int tota...
分类:
其他好文 时间:
2014-12-01 12:40:15
阅读次数:
212
如果直接使用递归,会因为递归层数过多导致段错误因此使用queue代替递归//递归调用层数过多,使用queue代替#include #include #include using namespace std;struct Point { int z, x, y; Point(int z, ...
分类:
其他好文 时间:
2014-12-01 12:36:17
阅读次数:
219
ZOJ 1711 Sum It Up(DFS啊 )...
分类:
其他好文 时间:
2014-11-30 23:21:11
阅读次数:
219
ZOJ 3838 Infusion Altar(数学啊 模拟啊 这么挫的代码你见过吗?)...
分类:
其他好文 时间:
2014-11-30 18:46:29
阅读次数:
414
1080. Graduate Admission (30) (模拟排序啊 ZJU_PAT)...
分类:
编程语言 时间:
2014-11-29 11:54:46
阅读次数:
259
1002. A+B for Polynomials (25) (数学啊 ZJU_PAT)...
分类:
其他好文 时间:
2014-11-28 20:11:58
阅读次数:
204