- 博客(12)
- 收藏
- 关注
转载 prime
int prime(){ memset(visit,0,sizeof(visit)); for(i=1; i<=m; i++) { dis[i]=map[1][i]; } visit[1]=1; int count=0; for(i=1; i<m; i++) { int min=MAX;
2015-03-02 17:00:55
281
转载 kruskal
int pre[107],i,j; struct node { int a,b,lenth; }path[107]; void init() { for(i=0;i<107;i++) pre[i]=i; } int find(int x) { while(x!=pre[x]) x=pre[x];
2015-03-02 16:57:42
295
原创 poj 1654
求面积Crawling in process... Crawling failed Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Description You are going to com
2015-02-06 16:50:00
326
原创 sdjzuoj 2558:Rescue The Princess
题目描述本题为2013年山东省省赛PROBLEM A Several days ago, a beast caught a beautiful princess and the princess was put in prison. To rescue the princess, a prince who wanted to marry the princess set out immedia
2015-02-06 16:45:47
297
转载 线段树模板
struct node{ ll l,r,mid,val,mark;}tree[M<<2];ll s[M];void build(ll left,ll right,ll i)//建树{ tree[i].l=left;tree[i].r=right; tree[i].mid=(left+right)>>1;tree[i].mark=0; if(left=
2015-02-06 16:05:42
273
原创 SDJZU_新生_KMP/字符串
E - OulipoCrawling in process...Crawling failedTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmitStatus DescriptionThe French author Geor
2015-02-04 16:33:15
330
原创 SDJZU_新生_KMP/字符串
做了前面的几道题目,了解了KMP的一般步骤,才会做的这道题。只要理解了题意,就可以很简单的做出来了。C - 剪花布条Crawling in process...Crawling failedTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitSt
2015-02-04 16:28:38
302
原创 SDJZU_新生_KMP/字符串
A - Number SequenceCrawling in process...Crawling failedTime Limit:5000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatus DescriptionGiven two sequences
2015-02-04 16:23:24
280
原创 light oj 1088
Points in Segments(二分)Crawling in process... Crawling failedTime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmitStatus DescriptionGiven n poin
2015-02-04 16:11:48
547
原创 hdoj1241
Oil DepositsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14538 Accepted Submission(s): 8380Problem DescriptionThe GeoSurvC
2015-02-04 16:00:32
324
原创 poj1979
Red and BlackTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 23928 Accepted: 12935DescriptionThere is a rectangular room, covered with square tiles. E
2015-02-04 15:48:45
285
原创 A - Lake Counting
A - Lake CountingCrawling in process...Crawling failedTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmitStatusDescription
2015-02-03 19:51:02
439
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人