????
文章平均质量分 75
Cxiaokai
这个作者很懒,什么都没留下…
展开
-
hdu 4070
#include #include #include using namespace std; #define N 100004 struct node { int s,t; }ans[N]; bool cmp(node a,node b) { if(a.t!=b原创 2011-10-08 09:55:47 · 939 阅读 · 0 评论 -
zoj 1003
这个题目是搜索的经典题目,深搜来找到解进而进行两个姐相容性的判定。#include #include using namespace std; bool flag; bool check(int big,int small,int n) { int i; fo原创 2011-10-08 16:03:06 · 3136 阅读 · 2 评论 -
1101 Gamblers
找一个最大的数,这个数是由这个数等于所在的序列中的某三个数的和。 第一种方法,我是用深度优先搜索来做的,但是返回的结果是超时;但是现在还不知道这个程序为什么超时,希望路过的各位指出程序的不足之处。 #include #include #include using namesp原创 2011-10-09 23:04:31 · 580 阅读 · 0 评论