#HDOj

HDOJ 1864 最大报销额(01背包)

http://acm.hdu.edu.cn/showproblem.php?pid=1864TimeLimit:1000/1000MS(Java/Others)    MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):...

HDOJ 2955 Robberies (01背包)

103977802014-03-2600:13:51Accepted295546MS480K676BC++泽泽http://acm.hdu.edu.cn/showproblem.php?pid=2955TimeLimit:2000/1000MS(Java/Others)    M...
代码星球 ·2020-04-05

HDOJ 1203 I NEED A OFFER!(01背包)

103975072014-03-2523:30:21Accepted12030MS480K428BC++泽泽题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1203ProblemDescriptionSpeakless很早就想出国,现在他已经考完了所有需要的考试,准备了所有...
代码星球 ·2020-04-05

HDOJ 1257 (最长字序列问题)

http://acm.hdu.edu.cn/showproblem.php?pid=1257TimeLimit:2000/1000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):...

HDOJ 1106

1#include<iostream>2#include<algorithm>3#include<string.h>4#include<stdlib.h>5#include<stdio.h>6usingnamespacestd;7intmain()8{9cha...
代码星球 ·2020-04-05

HDOJ 1596

98998282013-12-2716:42:37Accepted15963312MS6668K711BC++泽泽 floyed暴力1#include<cstdio>2#include<cstring>3doubleg[1001][1001];4voidfloyed(intn)5{6i...
代码星球 ·2020-04-05

HDOJ 1026 dfs路径保存

1#include<cstdio>2#include<cstring>3#include<cmath>4intg[101][101];5#defineinf0xffffff6intn,m;7intmin;8intsx[4]={0,1,0,-1};9intsy[4]={1,0,-1,0...
代码星球 ·2020-04-05

HDOJ 2088

1#include<cstdio>2intmain()3{4inta[51],i,j,n,x,k=1;5intsum,ans;6while(scanf("%d",&n)!=EOF&&n)7{8sum=ans=0;9if(!k)10printf("");11k=0;12for(i=0;...
代码星球 ·2020-04-05

HDOJ 1878 欧拉回路 nyoj 42一笔画问题

1#include<cstdio>2#include<cstring>3intvisited[1000];4intfind(intx)5{6if(visited[x]!=x)7returnfind(visited[x]);8returnx;9}10voidmake(inta,intb)11{12...

HDOJ 1863 prim算法 HDOJ 1879

1#include<cstdio>2#include<cstring>3#defineinf0xffffff4intg[101][101];5intans;6voidprim(intn)7{8intlowcost[101],used[101],i,j,k,min,closet[101];9mem...
代码星球 ·2020-04-05

HDOj 1010 DFS优化

1#include<cstdio>2#include<cstring>3intsx[4]={0,1,0,-1};4intsy[4]={1,0,-1,0};5intg[10][10];6intx1,y1,x2,y2;7intstep;8intn,m,t;9voiddfs(intx,inty,int...
代码星球 ·2020-04-05

HDOJ 2066 floyed优化算法

TimeLimit:1000/1000MS(Java/Others)   MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):15657   AcceptedSubmission(s):5350Pro...

HDOJ 1075

字典树98909742013-12-2515:31:06Accepted1075468MS59832K1342BG++泽泽 1#include<stdio.h>2#include<cstring>3#include<cstdlib>4structnode5{6node*ne...
代码星球 ·2020-04-05

HDOJ 1856

1#include<cstdio>2#include<cstdlib>3typedefstructufse*ufset;4structufse5{6intparent[1000001];7introot[1000001];8}UFS;9intmax;10intfind(inte,ufsetu)1...
代码星球 ·2020-04-05

HDOJ 3790

dijstra最短路径算法:98855602013-12-2323:54:56Accepted3790203MS8112K1343BC++泽泽 1#include<cstdio>2#include<cstring>3#defineinf0xffffff4intg[1001][1001]...
代码星球 ·2020-04-05
首页上一页1234下一页尾页