
哈希
文章平均质量分 80
LeeBooL
这个作者很懒,什么都没留下…
展开
-
HDU 1880
hash表版 #include #include #include #include using namespace std; #define mod 100007 #define N 100010 struct node { char que[25]; char ans[85]; int next; };原创 2014-11-03 14:30:46 · 482 阅读 · 0 评论 -
HDU 1280
//基础的HASH,根据题意 #include #include #include #include using namespace std; int a[3000]; int num[11111]; int main() { int n, m; while(scanf("%d %d",&n, &m) != EOF)原创 2014-11-02 17:05:12 · 324 阅读 · 0 评论 -
10391 - Compound Words
WA了无数次因为什么呢,找到一个之后还一直再找。没有认真去写代码原创 2014-11-03 20:38:15 · 285 阅读 · 0 评论 -
HDU 1800
#include #include #include #include #include #include using namespace std; int lev[10000]; map ma; int main() { int n; while(scanf("%d",&n)==1) { ma.clear()原创 2014-11-02 18:20:11 · 381 阅读 · 0 评论 -
HDU 1496
Consider equations having the following form: a*x1^2+b*x2^2+c*x3^2+d*x4^2=0 a, b, c, d are integers from the interval [-50,50] and any of them cannot be 0. It is consider a solution a system原创 2014-11-02 19:21:04 · 320 阅读 · 0 评论