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
杭电OJ1789
【
杭电oj
】1276 - 士兵队列训练问题(队列,暴力)
士兵队列训练问题TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):5430 AcceptedSubmission(s):2500ProblemDescription某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开
wyg1997
·
2016-03-08 22:00
【
杭电oj
】1896 - Stones(优先队列)
StonesTimeLimit:5000/3000MS(Java/Others) MemoryLimit:65535/32768K(Java/Others)TotalSubmission(s):1674 AcceptedSubmission(s):1075ProblemDescriptionBecauseofthewrongstatusofthebicycle,Semprbeginto
wyg1997
·
2016-03-08 22:00
【
杭电oj
】1003 - Max Sum(最大子序列的和)
MaxSumTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):200098 AcceptedSubmission(s):46774ProblemDescriptionGivenasequencea[1],a[2],a[3]......a[n],yourjo
wyg1997
·
2016-03-07 17:00
poj
1789
Truck History
TruckHistoryTimeLimit: 2000MS MemoryLimit: 65536KTotalSubmissions: 23409 Accepted: 9079DescriptionAdvancedCargoMovement,Ltd.usestrucksofdifferenttypes.Sometrucksareusedforvegetabledelivery,otherforfur
LeeHolmes
·
2016-03-06 22:00
poj
HDOJ-
1789
Doing Homework again
先按分数对作业进行降序,在遍历每个作业,求出它可以完成的最迟时间,记下,若不能完成,则累加分数.#include #include #include #include #include #include #include usingnamespacestd; structWork{ intday,score; friendbooloperatorb.score; } }work[1005];
qq_26122039
·
2016-03-04 16:00
【
杭电oj
】3047 - Zjnu Stadium(带权并查集)
ZjnuStadiumTimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):2464 AcceptedSubmission(s):942ProblemDescriptionIn12thZhejiangCollegeStudentsGames2007,there
wyg1997
·
2016-03-03 12:00
【
杭电oj
】1873 - 看病要排队(优先队列,水)
看病要排队TimeLimit:3000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):6918 AcceptedSubmission(s):2857ProblemDescription看病要排队这个是地球人都知道的常识。不过经过细心的0068的观察,他发现了医院里排队还是有讲究的。
wyg1997
·
2016-03-02 23:00
【
杭电oj
】1509 - Windows Message Queue(优先队列)
WindowsMessageQueueTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):4979 AcceptedSubmission(s):1993ProblemDescriptionMessagequeueisthebasicfundamentalof
wyg1997
·
2016-03-02 17:00
pod的SDK报错,Linker command failed with exit code1(use -v to see invocation)
错误
1789
个重复的符号:原因是我用cocopads导入了重复的SDK环信的SDKEaseMobSDK:不包含语音的EaseMobSDKFull:包含语音的 在Podfile中将导入EaseMobSDK
Margaret_MO
·
2016-03-02 16:00
ios
xcode
sdk
POD
第一篇blog
之前不用blog,但是在
杭电oj
,poj上刷题,总会自己总结题型和使用什么算法,算法模板,自己在笔记本上写,耗时费力,感觉用键盘敲得总结,分享,大家相互学习提高。
saucxs
·
2016-03-01 23:00
【
杭电oj
】1022 - Train Problem I(栈)
TrainProblemITimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):28971 AcceptedSubmission(s):10987ProblemDescriptionAsthenewtermcomes,theIgnatiusTrainStati
wyg1997
·
2016-03-01 11:00
hdu 4146 Flip Game
4146FlipGameTimeLimit:15000/5000MS(Java/Others) MemoryLimit:65535/32768K(Java/Others)TotalSubmission(s):
1789
qiqi_skystar
·
2016-02-29 21:00
C语言
【
杭电oj
】1702 - ACboy needs your help again!(栈和队列)
ACboyneedsyourhelpagain!TimeLimit:1000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):5129 AcceptedSubmission(s):2651ProblemDescriptionACboywaskidnapped!! hemisshism
wyg1997
·
2016-02-29 18:00
【
杭电oj
】3785 - 寻找大富翁(水)
寻找大富翁TimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):5354 AcceptedSubmission(s):2070ProblemDescription浙江桐乡乌镇共有n个人,请找出该镇上的前m个大富翁. Input输入包含多组测试用例.每个用例首先
wyg1997
·
2016-02-29 18:00
hdu
1789
Doing Homework Again!
ProblemDescriptionIgnatiushasjustcomebackschoolfromthe30thACM/ICPC.Nowhehasalotofhomeworktodo.Everyteachergiveshimadeadlineofhandinginthehomework.IfIgnatiushandsinthehomeworkafterthedeadline,theteache
xiaojixuansu
·
2016-02-25 20:00
HDU
1789
贪心经典
题意给出n门作业的截止时间与分数如果不能在那天结束前做完就扣掉相应分数问怎么安排能让扣分最少思路先按分数从大到小排序先研究大的做好标记一开始每天都能放作业全是true如果这一天已经有作业了就往前寻找true的一天如果没有寻找到就扣分之前wa了好多次是因为输入n后nodea[n+1]boolb[n+1]后来改成nodea[1050]boolb[1050]就可以了#include #include
天翎月
·
2016-02-25 00:00
HDU
1789
贪心
http://acm.hust.edu.cn/vjudge/contest/view.action?cid=104126#problem/P刚拿到这个题目的时候,我的第一反应就是按照日期排序,然后按照扣分多的排在前面的顺序,忽略了可能出现的我主动放弃在小的日期能交的,而是选择把截至日期在后面的扣分多切排不开的放到前面来做,然后转变了一下思路:先按照扣分从大到小排序,分数相同则按照截止日期从小到大排
zjy2015302395
·
2016-02-21 10:00
【POJ】
1789
- Truck History(克鲁斯塔尔)
TruckHistoryTimeLimit:2000MS MemoryLimit:65536KTotalSubmissions:23302 Accepted:9021DescriptionAdvancedCargoMovement,Ltd.usestrucksofdifferenttypes.Sometrucksareusedforvegetabledelivery,otherforfurnitu
wyg1997
·
2016-02-20 16:00
【
杭电oj
】1875 - 畅通工程再续(克鲁斯塔尔)
畅通工程再续TimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):21945 AcceptedSubmission(s):6942ProblemDescription相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当他们想去其他的小岛时都
wyg1997
·
2016-02-20 14:00
POJ-
1789
TruckHistoryTimeLimit:2000MSMemoryLimit:65536KTotalSubmissions:23300Accepted:9019DescriptionAdvancedCargoMovement,Ltd.usestrucksofdifferenttypes.Sometrucksareusedforvegetabledelivery,otherforfurniture
u014258433
·
2016-02-19 00:00
POJ
1789
Truck History(Prim+邻接矩阵)
( ̄▽ ̄)"#include #include #include #include #include #include usingnamespacestd; constintMAXN=2010; constintINF=10e8; intn,k,minn; charstr[MAXN][10]; intc[MAXN][MAXN],lc[MAXN]; boolvis[MAX
ATMacmer
·
2016-02-18 23:00
POJ
1789
Truck History(Prim+邻接矩阵)
( ̄▽ ̄)"#include #include #include #include #include #include usingnamespacestd; constintMAXN=2010; constintINF=10e8; intn,k,minn; charstr[MAXN][10]; intc[MAXN][MAXN],lc[MAXN]; boolvis[MAX
ATMacmer
·
2016-02-18 23:00
activemq调优
http://www.jack-yin.com/coding/translation/activemq-in-action/
1789
.html13.1通用技术1.非持久化消息2.在需要确保消息发送成功时使用事务来将消息分批组合通常不考虑使用费持久化消息
泡海椒
·
2016-02-16 16:00
贪心 HDU
1789
Doing Homework again
原题:点击打开链接思路:此题贪的是学分,为了获得更多的学分首先对学分从高到低进行排序学分高的科目可选择日期的自由更大,为了挤出时间完成其他日期较紧的科目,安排在限期的最后一天然后对学分稍低的科目进行安排,同样订在截止日期的最后一天,若当天已有安排(肯定是已安排学分更高的科目)则往前推一天,若前面几天都已排满,放弃此学分,以此类推核心代码:for(i=sum=0;i代码:#include #incl
纳森索亚
·
2016-02-15 15:27
贪心
HDU
1789
Doing Homework again(贪心)
DoingHomeworkagainProblemDescriptionIgnatiushasjustcomebackschoolfromthe30thACM/ICPC.Nowhehasalotofhomeworktodo.Everyteachergiveshimadeadlineofhandinginthehomework.IfIgnatiushandsinthehomeworkafterthe
ACMSaga
·
2016-02-11 23:00
HDOJ
1789
Doing Homework again
DoingHomeworkagainTimeLimit:1000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):10101 AcceptedSubmission(s):5916ProblemDescriptionIgnatiushasjustcomebackschoolfromth
RaAlGhul
·
2016-02-11 17:00
POJ
1789
-Truck History
题目链接:TruckHistory题意就是N个卡车的型号,一代一代的发展,两辆卡车的型号中不同字母的个数代表着两辆卡车的距离,确定一个点。遍历到全部的点,使之这个距离最小。非常明显最小生成树,稠密图。1次AC,水过PS:厚颜无耻的先看了Discuss才做的,否则我也漏“.”。罪过罪过#include #include #include #include #include constintN=200
mengfanrong
·
2016-02-07 16:00
HDU——
1789
Doing Homework again(贪心)
DoingHomeworkagainTimeLimit:1000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):10043 AcceptedSubmission(s):5875ProblemDescriptionIgnatiushasjustcomebackschoolfromth
a88770202
·
2016-01-30 15:00
【
杭电oj
】1010 - Tempter of the Bone(dfs,奇偶剪枝,好题)
TempteroftheBoneTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):97047 AcceptedSubmission(s):26333ProblemDescriptionThedoggiefoundaboneinanancientmaze,w
wyg1997
·
2016-01-30 12:00
杭电oj
1004
第一种方法#include #include charcolor[1005][100]; intnumber[1005]; inttop; intn; voidjudge(charstr[]){ for(inti=0;i #include #include usingnamespacestd; typedefstructcolor { charstr[20]; intcoun; }A; A
Summer__show_
·
2016-01-30 09:00
hdu
1789
Doing Homework again
ProblemDescriptionIgnatiushasjustcomebackschoolfromthe30thACM/ICPC.Nowhehasalotofhomeworktodo.Everyteachergiveshimadeadlineofhandinginthehomework.IfIgnatiushandsinthehomeworkafterthedeadline,theteache
LeeHolmes
·
2016-01-29 19:00
HDU
【
杭电oj
】3038 - How Many Answers Are Wrong(带权并查集,好题)
HowManyAnswersAreWrongTimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):4436 AcceptedSubmission(s):1700ProblemDescriptionTTandFFare...friends.Uh...veryve
wyg1997
·
2016-01-26 23:00
【
杭电oj
】1325 - Is It A Tree?(树,并查集)
IsItATree?TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):19420 AcceptedSubmission(s):4349ProblemDescriptionAtreeisawell-knowndatastructurethatiseither
wyg1997
·
2016-01-26 14:00
POJ
1789
(最小生成树之Kruskal算法)
id=
1789
题意:给出多个字符串,每两个字符串之间不同的字符数作为一个字符串衍生出另一个字符串的代价,求出如果衍生出所有的字符串需要的1/Q(Q为总代价)。
rachelsg
·
2016-01-24 09:00
POJ-
1789
-Truck History-最小生成树
id=
1789
傻逼题犯了傻逼错误。。。。
viphong
·
2016-01-20 15:00
poj
1789
Truck History 最小生成树
题意:历史上,曾用7个小写字母来表示每种truck的型号,每两种型号之间的差距为字母串中不同字母的个数。现在给出n种不同型号的truck,问怎样使1/Σ(to,td)d(to,td)的值最小。(即找到一条连接所有truck的最短路径。典型的最小生成树的问题。不多说,直接附代码:var n,i,j,k,ans:longint; a:array[1..2000]ofstring; f:array[1.
qq_33229466
·
2016-01-20 15:00
【
杭电oj
】1722 - Cake(数论,GCD)
CakeTimeLimit:1000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):2914 AcceptedSubmission(s):1527ProblemDescription一次生日Party可能有p人或者q人参加,现准备有一个大蛋糕.问最少要将蛋糕切成多少块(每块大小不一
wyg1997
·
2016-01-17 20:00
【
杭电oj
】1717 - 小数化分数2(小数化分数,GCD)
小数化分数2TimeLimit:1000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):4076 AcceptedSubmission(s):1663ProblemDescriptionRay在数学课上听老师说,任何小数都能表示成分数的形式,他开始了化了起来,很快他就完成了,但他又
wyg1997
·
2016-01-17 20:00
【
杭电oj
】1061 - Rightmost Digit(打表)
RightmostDigitTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):43080 AcceptedSubmission(s):16192ProblemDescriptionGivenapositiveintegerN,youshouldoutput
wyg1997
·
2016-01-16 19:00
HDU
1789
Doing Homework again
DoingHomeworkagainTimeLimit:1000/1000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):9936AcceptedSubmission(s):5803ProblemDescriptionIgnatiushasjustcomebackschoolfromthe30thACM/
zyq_19960204
·
2016-01-16 14:00
【
杭电oj
】1060 - Leftmost Digit(数学好题)
LeftmostDigitTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):15463 AcceptedSubmission(s):6000ProblemDescriptionGivenapositiveintegerN,youshouldoutputth
wyg1997
·
2016-01-13 17:00
【
杭电oj
】1286 - 找新朋友(欧拉公式)
找新朋友TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):9872 AcceptedSubmission(s):5218ProblemDescription新年快到了,“猪头帮协会”准备搞一个聚会,已经知道现有会员N人,把会员从1到N编号,其中会长的号码是
wyg1997
·
2016-01-13 16:00
【
杭电oj
】5499 - SDOI(结构体排序,水)
SDOITimeLimit:2000/1000MS(Java/Others) MemoryLimit:131072/131072K(Java/Others)TotalSubmission(s):752 AcceptedSubmission(s):288ProblemDescriptionTheAnnualNationalOlympicofInformation(NOI)willbehe
wyg1997
·
2016-01-13 13:00
【
杭电oj
】1201 - 18岁生日(水)
18岁生日TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):25688 AcceptedSubmission(s):8148ProblemDescriptionGardon的18岁生日就要到了,他当然很开心,可是他突然想到一个问题,是不是每个人从出生开始,
wyg1997
·
2016-01-13 12:00
【
杭电oj
】1994 - 利息计算(水)
利息计算TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):4491 AcceptedSubmission(s):3179ProblemDescription为自行解决学费,chx勤工俭学收入10000元以1年定期存入银行,年利率为3.7%。利率按年计算,表
wyg1997
·
2016-01-13 12:00
【
杭电oj
】1215 - 七夕节(打表,水)
七夕节TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):37435 AcceptedSubmission(s):11691ProblemDescription七夕节那天,月老来到数字王国,他在城门上贴了一张告示,并且和数字王国的人们说:"你们想知道你们的另
wyg1997
·
2016-01-11 21:00
【
杭电oj
】2504 - 又见GCD(GCD)
又见GCDTimeLimit:1000/1000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):14401AcceptedSubmission(s):6017ProblemDescription有三个正整数a,b,c(0intgcd(inta,intb){if(a%b==0)returnb;intt;t=
wyg1997
·
2016-01-11 21:28
GCD
【
杭电oj
】2504 - 又见GCD(GCD)
又见GCDTimeLimit:1000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):14401 AcceptedSubmission(s):6017ProblemDescription有三个正整数a,b,c(0 intgcd(inta,intb) { if(a%b==0) ret
wyg1997
·
2016-01-11 21:00
【
杭电oj
】2138 - How many prime numbers(判断素数新方法)
HowmanyprimenumbersTimeLimit:3000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):14851 AcceptedSubmission(s):5143ProblemDescription Giveyoualotofpositiveintegers,ju
wyg1997
·
2016-01-11 20:00
POJ【
1789
】 -- Truck History
TruckHistoryTimeLimit:2000MS MemoryLimit:65536KTotalSubmissions:22865 Accepted:8871DescriptionAdvancedCargoMovement,Ltd.usestrucksofdifferenttypes.Sometrucksareusedforvegetabledelivery,otherforfurnitu
chen_ze_hua
·
2016-01-11 20:00
最小生成树
poj
上一页
17
18
19
20
21
22
23
24
下一页
按字母分类:
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
其他