E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
hduoj
Hduoj
1272【并查集+路径压缩】
/*小希的迷宫 TimeLimit:2000/1000ms(Java/Other)MemoryLimit:65536/32768K(Java/Other) TotalSubmission(s):21AcceptedSubmission(s):7 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription 上次Gardon的迷宫
u014641529
·
2015-04-02 18:00
Hduoj
1301【最小生成树】
#include #include #include #defineMAX100000000 intn,f[27],m; structroad { inta,b,dis; }r[80]; intfind(intx) { if(x!=f[x]) f[x]=find(f[x]); returnf[x]; } intmerge(intx,inty) { x=find(x); y=find(y); if(
u014641529
·
2015-04-01 13:00
Hduoj
4786【最小生成树】
#include #include structpoint { intx,y,o; }P[100010]; intf[100010],F[33]; voidget_Fib() { F[1]=1; F[2]=2; for(inti=3;F[i]=0;--i) { if(merge(P[i].x,P[i].y)) { if(P[i].o==1) max++; } } for(i=1;;++i) { i
u014641529
·
2015-03-30 11:00
Hduoj
2680【dijksta】
/*Choosethebestroute TimeLimit:2000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):16AcceptedSubmission(s):6 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescriptio
u014641529
·
2015-03-27 19:00
Hduoj
1579【水题】
/*FunctionRunFun TimeLimit:1000/1000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others) TotalSubmission(s):2345AcceptedSubmission(s):1223 ProblemDescription Weallloverecursion!Don'twe? Considerath
u014641529
·
2015-03-27 15:00
Hduoj
1881【01背包】
/*毕业bg TimeLimit:2000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):0AcceptedSubmission(s):0 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription 每年毕业的季节都会有大量毕
u014641529
·
2015-03-27 14:00
Hduoj
2682【最小生成树】
/*Tree TimeLimit:6000/2000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):24AcceptedSubmission(s):9 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription ThereareN(2
u014641529
·
2015-03-26 18:00
Hduoj
1712【分组背包】
/*ACboyneedsyourhelp TimeLimit:1000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):0AcceptedSubmission(s):0 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription
u014641529
·
2015-03-25 17:00
Hduoj
2817【数学二分】
/*Asequenceofnumbers TimeLimit:2000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):28AcceptedSubmission(s):11 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescripti
u014641529
·
2015-03-25 16:00
Hduoj
2178【文字题】
/*猜数字 TimeLimit:3000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):2AcceptedSubmission(s):2 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription A有1数m,B来猜.B每猜一
u014641529
·
2015-03-23 11:00
Hduoj
1015【水题】
#include #include #include charstr[15]; intnum,ok,s[15],vis[30],n,ans[5]; intcmp(constvoid*a,constvoid*b) { return*(int*)b-*(int*)a; } intpower(intx,inty) { inti; i=x; while(--y) { x*=i; } returnx; }
u014641529
·
2015-03-21 19:00
c
HDU1000
基础JAVA在
HDUOJ
上的输入输出importjava.util.Scanner; publicclassMain{ privatestaticScannerme; publicstaticvoidmain
wlxsq
·
2015-03-16 23:00
Hduoj
1011【树状DP】
#include #include typedefstructroom { intbug,po; }room; roomR[110];//记录原始数据 intvis[110],next[110],n,m,tree[110][110]; intdp[110][110];//dp[i][j]代表以第i个节点为根节点的树在拥有j个士兵的情况下所能获得首脑的最大概率 intMax(intx,inty) {
u014641529
·
2015-03-16 17:00
hduoj
3782(xxx定律)奇数与偶数类别
xxx定律TimeLimit:2000/1000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):2938AcceptedSubmission(s):2159ProblemDescription对于一个数n,如果是偶数,就把n砍掉一半;如果是奇数,把n变成3*n+1后砍掉一半,直到该数变为1为止。请计算需要
萧雅的梦
·
2015-03-06 16:36
基础的C语言编程和知识
Hduoj
1160【DP】
/*FatMouse'sSpeed TimeLimit:2000/1000ms(Java/Other)MemoryLimit:65536/32768K(Java/Other) TotalSubmission(s):1AcceptedSubmission(s):1 SpecialJudge Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemD
u014641529
·
2015-02-17 08:00
Hduoj
3047【带权并查集】
/*ZjnuStadium TimeLimit:2000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):0AcceptedSubmission(s):0 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription In12th
u014641529
·
2015-02-15 10:00
Hduoj
1439【加密】
/*Cipher TimeLimit:2000/1000ms(Java/Other)MemoryLimit:65536/32768K(Java/Other) TotalSubmission(s):0AcceptedSubmission(s):0 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription BobandAlice
u014641529
·
2015-02-13 13:00
Hduoj
4190【二分】
/*DistributingBallotBoxes TimeLimit:20000/10000ms(Java/Other)MemoryLimit:65536/32768K(Java/Other) TotalSubmission(s):0AcceptedSubmission(s):0 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDesc
u014641529
·
2015-02-12 00:00
Hduoj
3427【DP】
/*Clickomania TimeLimit:20000/10000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):1AcceptedSubmission(s):1 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription Clic
u014641529
·
2015-02-11 10:00
c
Hduoj
4046【线段树】
/*Panda TimeLimit:10000/4000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):0AcceptedSubmission(s):0 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription WhenIwroted
u014641529
·
2015-02-11 02:00
Hduoj
2571【DP】
/*命运 TimeLimit:2000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):3AcceptedSubmission(s):1 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription 穿过幽谷意味着离大魔王lemo
u014641529
·
2015-02-05 20:00
Hduoj
2159【完全背包】
/*FATE TimeLimit:2000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):3AcceptedSubmission(s):1 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription 最近xhd正在玩一款叫做F
u014641529
·
2015-02-05 17:00
Hduoj
2709【规律题】
#include inta[1000010]; intmain() { inti,n; a[1]=1; a[2]=2; for(i=3;i=1000000000) a[i]%=1000000000; } while(scanf("%d",&n)!=EOF) { printf("%d\n",a[n]); } return0; }题意:将一个数拆分成一些2^i数的和,共多少种情况。思路:当n为奇数时,
u014641529
·
2015-02-04 17:00
Hduoj
1978【Dp】
/*Howmanyways TimeLimit:3000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):3AcceptedSubmission(s):2 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription 这是一个简单
u014641529
·
2015-02-04 14:00
Hduoj
2544【Dijkstra】
/*最短路 TimeLimit:5000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):4AcceptedSubmission(s):4 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription 在每年的校赛里,所有进入决赛
u014641529
·
2015-02-02 13:00
Hduoj
1760【博弈】
/*ANewTetrisGame TimeLimit:3000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):0AcceptedSubmission(s):0 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription 曾经,
u014641529
·
2015-02-01 13:00
Hduoj
1210【数学】
解题链接:http://blog.csdn.net/lishuhuakai/article/details/8516192/*Eddy's洗牌问题 TimeLimit:2000/1000ms(Java/Other)MemoryLimit:65536/32768K(Java/Other) TotalSubmission(s):2AcceptedSubmission(s):2 Font:TimesNe
u014641529
·
2015-01-31 18:00
Hduoj
1025【最长上升子序列 + 二分】
/*ConstructingRoadsInJGShining'sKingdom TimeLimit:2000/1000ms(Java/Other)MemoryLimit:65536/32768K(Java/Other) TotalSubmission(s):2AcceptedSubmission(s):1 Font:TimesNewRoman|Verdana|Georgia FontSize:←→
u014641529
·
2015-01-30 16:00
c
Hduoj
1848【博弈】
/*Fibonacciagainandagain TimeLimit:1000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):3AcceptedSubmission(s):1 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescrip
u014641529
·
2015-01-30 13:00
c
Hduoj
2723【阅读理解题】
/*ElectronicDocumentSecurity TimeLimit:2000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):0AcceptedSubmission(s):0 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDes
u014641529
·
2015-01-29 23:00
c
Hduoj
2512【DP】
/*一卡通大冒险 TimeLimit:2000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):0AcceptedSubmission(s):0 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription 因为长期钻研算法,无暇
u014641529
·
2015-01-29 17:00
c
Hduoj
2607【位运算】
/*LettheBalloonRiseII TimeLimit:2000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):0AcceptedSubmission(s):0 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescriptio
u014641529
·
2015-01-29 10:00
c
Hduoj
1172【暴力】
/*猜数字 TimeLimit:20000/10000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others) TotalSubmission(s):2964AcceptedSubmission(s):1732 ProblemDescription 猜数字游戏是gameboy最喜欢的游戏之一。游戏的规则是这样的:计算机随机产生一个四位数,然后玩家
u014641529
·
2015-01-28 18:00
c
Hduoj
1251【字典树】
/*统计难题 TimeLimit:4000/2000ms(Java/Other)MemoryLimit:131070/65535K(Java/Other) TotalSubmission(s):3AcceptedSubmission(s):1 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription Ignatius最近遇到
u014641529
·
2015-01-28 14:00
c
Hduoj
1253【广搜】
/*胜利大逃亡 TimeLimit:4000/2000ms(Java/Other)MemoryLimit:65536/32768K(Java/Other) TotalSubmission(s):0AcceptedSubmission(s):0 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription Ignatius被魔王抓
u014641529
·
2015-01-27 16:00
c
Hduoj
1728【搜索+DP】
/*逃离迷宫 TimeLimit:1000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):0AcceptedSubmission(s):0 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescription 给定一个m×n(m行,n列
u014641529
·
2015-01-26 23:00
c
Hduoj
2137【水题】
/*circumgyratethestring TimeLimit:10000/1000ms(Java/Other)MemoryLimit:32768/32768K(Java/Other) TotalSubmission(s):2AcceptedSubmission(s):1 Font:TimesNewRoman|Verdana|Georgia FontSize:←→ ProblemDescrip
u014641529
·
2015-01-26 14:00
c
Bestcoder_Round#27_1002-Taking bus(
HDUOJ
_5163)
ProblemDescriptionTherearenkidsandtheywanttoknowwhocanjumpthefarthest.Foreachkid,hecanjumpthreetimesandthedistancehejumpsismaximumdistanceamountallthethreejump.Forexample,ifthedistanceofeachjumpis(10,
highmath_Final
·
2015-01-25 09:00
(
HDUOJ
_5162)
ProblemDescriptionTherearenkidsandtheywanttoknowwhocanjumpthefarthest.Foreachkid,hecanjumpthreetimesandthedistancehejumpsismaximumdistanceamountallthethreejump.Forexample,ifthedistanceofeachjumpis(10,
highmath_Final
·
2015-01-25 09:00
HDUOJ
1874(最短路dijkstra)
畅通工程续TimeLimit:3000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):30515 AcceptedSubmission(s):11137ProblemDescription某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另
kalilili
·
2015-01-13 22:00
Hduoj
1394【线段树+逆序数处理】
/*MinimumInversionNumber TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others) TotalSubmission(s):11841AcceptedSubmission(s):7259 ProblemDescription Theinversionnumberofagivennumbe
u014641529
·
2014-12-13 14:00
c
poj3278广度优先搜索(BFS)
哎,还是在看了人家的代码情况下才做出来的,没事,能学会就行啦,用的是c++上的stl中的函数,定义的队列,比C语言上自己定义好用多了,嘿嘿,poj上的题目真不简单,比其他oj要难我觉得,起码是比
hduoj
sinat_22659021
·
2014-12-12 23:00
Hduoj
1698【线段树】
/*JustaHook TimeLimit:4000/2000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others) TotalSubmission(s):18439AcceptedSubmission(s):9241 ProblemDescription InthegameofDotA,Pudge’smeathookisactuallythe
u014641529
·
2014-12-08 16:00
c
Hduoj
1754【线段树】
/*IHateIt TimeLimit:9000/3000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others) TotalSubmission(s):41131AcceptedSubmission(s):16306 ProblemDescription 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多
u014641529
·
2014-12-07 17:00
c
HDUOJ
lines
/* lines TimeLimit:5000/2500MS(Java/Others)MemoryLimit:32768/32768K(Java/Others) TotalSubmission(s):590AcceptedSubmission(s):277 ProblemDescription Johnhasseverallines.ThelinesarecoveredontheXax
kalilili
·
2014-12-03 22:00
HDUOJ
Alexandra and A*B Problem
/*AlexandraandA*BProblem TimeLimit:2000/1000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others) TotalSubmission(s):325AcceptedSubmission(s):70 ProblemDescription Alexandrahasalittlebrother.Heisne
kalilili
·
2014-12-03 22:00
HDUOJ
Alexandra and Prime Numbers
/*AlexandraandPrimeNumbers TimeLimit:2000/1000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others) TotalSubmission(s):0AcceptedSubmission(s):0 ProblemDescription Alexandrahasalittlebrother.Heisne
kalilili
·
2014-12-03 22:00
Hduoj
1829【并查集】
/*ABug'sLife TimeLimit:15000/5000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others) TotalSubmission(s):9249AcceptedSubmission(s):2980 ProblemDescription Background ProfessorHopperisresearchingthes
u014641529
·
2014-12-01 15:00
c
Hduoj
5122【数学】
/*K.BroSorting TimeLimit:2000/2000MS(Java/Others)MemoryLimit:512000/512000K(Java/Others) TotalSubmission(s):188AcceptedSubmission(s):106 ProblemDescription Matt’sfriendK.BroisanACMer. Yesterday,K.B
u014641529
·
2014-12-01 13:00
c
Hduoj
2952【搜索水题】
CountingSheepTimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):2156 AcceptedSubmission(s):1421ProblemDescriptionAwhileagoIhadtroublesleeping.Iusedtolieaw
u014641529
·
2014-11-29 16:00
c
上一页
7
8
9
10
11
12
13
14
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他