算法
文章平均质量分 76
No_1oser
这个作者很懒,什么都没留下…
展开
-
acm-kmp算法
华科acm oj上简单的一道acm题,快来围观,谢谢捧场原创 2016-01-13 20:45:24 · 370 阅读 · 0 评论 -
敌兵布阵(线段树)
敌兵布阵Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionC国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy转载 2016-01-25 17:34:14 · 339 阅读 · 0 评论 -
More is better(并查集问题)
More is betterTime Limit:1000MS Memory Limit:102400KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionMr Wang wants some boys to help him with a project. Because the p转载 2016-01-23 10:26:44 · 388 阅读 · 0 评论 -
小希的迷宫(并查集问题)
和Is It a Tree?问题一模一样原创 2016-01-22 19:48:10 · 411 阅读 · 0 评论 -
Is It A Tree?(并查集问题)
Is It A Tree?Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionA tree is a well-known data structure that is either empty (null, voi转载 2016-01-22 19:37:14 · 399 阅读 · 0 评论 -
排序(permutation)
算法竞赛入门经典刘汝佳第二章习题2-10排序代码原创 2016-01-19 18:34:11 · 384 阅读 · 0 评论 -
triangle
#include #includeusing namespace std;void triangle(int n){ for(int i=0;i {for(int j=0;j if(j=(2*n-1)) printf(" "); else printf("#"); printf("\n")原创 2016-01-18 20:59:20 · 294 阅读 · 0 评论 -
hanxin
#include #includeusing namespace std;void hanxin(int a,int b,int c){ int temp,i; for(i=1;i for(int j=2;j { temp=c+7*i; if((5*j+b)==temp) {原创 2016-01-18 20:21:25 · 292 阅读 · 0 评论