51
Dev开发社区
首页
文章
问答
工具
搜索
登录
注册
#0分
1058 A+B in Hogwarts (20分)(水)
IfyouareafanofHarryPotter,youwouldknowtheworldofmagichasitsowncurrencysystem--asHagridexplainedittoHarry,"SeventeensilverSicklestoaGalleonandtwenty-nineKnutstoa...
代码星球
·
2020-08-09
1058
A+B
in
Hogwarts
20分
1057 Stack (30分)(树状数组+二分)
Stackisoneofthemostfundamentaldatastructures,whichisbasedontheprincipleofLastInFirstOut(LIFO).ThebasicoperationsincludePush(insertinganelementontothetopposition...
代码星球
·
2020-08-09
1057
Stack
30分
树状
数组
1054 The Dominant Color (20分)(水)
Behindthescenesinthecomputer'smemory,colorisalwaystalkedaboutasaseriesof24bitsofinformationforeachpixel.Inanimage,thecolorwiththelargestproportionalareaiscalled...
代码星球
·
2020-08-09
1054
The
Dominant
Color
20分
1053 Path of Equal Weight (30分)(并查集)
Givenanon-emptytreewithroot R,andwithweight Wi assignedtoeachtreenode Ti.The weightofapathfrom R to L isdefin...
代码星球
·
2020-08-09
1053
Path
of
Equal
Weight
1050 String Subtraction (20分)
Giventwostrings S1 and S2, S=S1−S2 isdefinedtobetheremainingstringaftertakingallthecharactersin S2 from&...
代码星球
·
2020-08-09
1050
String
Subtraction
20分
1049 Counting Ones (30分)
Thetaskissimple:givenanypositiveinteger N,youaresupposedtocountthetotalnumberof1'sinthedecimalformoftheintegersfrom1to N.Forexample,given N ...
代码星球
·
2020-08-09
1049
Counting
Ones
30分
1046 Shortest Distance (20分)
Thetaskisreallysimple:given N exitsonahighwaywhichformsasimplecycle,youaresupposedtotelltheshortestdistancebetweenanypairofexits.InputSpecification:Ea...
代码星球
·
2020-08-09
1046
Shortest
Distance
20分
1045 Favorite Color Stripe (30分)(简单dp)
Evaistryingtomakeherowncolorstripeoutofagivenone.Shewouldliketokeeponlyherfavoritecolorsinherfavoriteorderbycuttingoffthoseunwantedpiecesandsewingtheremainingpa...
代码星球
·
2020-08-09
1045
Favorite
Color
Stripe
30分
1042 Shuffling Machine (20分)(水)
Shufflingisaprocedureusedtorandomizeadeckofplayingcards.Becausestandardshufflingtechniquesareseenasweak,andinordertoavoid"insidejobs"whereemployeescollaboratewi...
代码星球
·
2020-08-09
1042
Shuffling
Machine
20分
1041 Be Unique (20分)(水)
BeinguniqueissoimportanttopeopleonMarsthateventheirlotteryisdesignedinauniqueway.Theruleofwinningissimple:onebetsonanumberchosenfrom[1].Thefirstonewhobetsonauni...
代码星球
·
2020-08-09
1041
Be
Unique
20分
1038 Recover the Smallest Number (30分)(贪心)
Givenacollectionofnumbersegments,youaresupposedtorecoverthesmallestnumberfromthem.Forexample,given{32,321,3214,0229,87},wecanrecovermanynumberssuchlike32-321-32...
代码星球
·
2020-08-09
1038
Recover
the
Smallest
Number
1035 Password (20分)(水)
ToprepareforPAT,thejudgesometimeshastogeneraterandompasswordsfortheusers.Theproblemisthattherearealwayssomeconfusingpasswordssinceitishardtodistinguish 1&n...
代码星球
·
2020-08-09
1035
Password
20分
1034 Head of a Gang (30分)(dfs 利用map)
Onewaythatthepolicefindstheheadofagangistocheckpeople'sphonecalls.Ifthereisaphonecallbetween A and B,wesaythat A and B isrela...
代码星球
·
2020-08-09
1034
Head
of
Gang
30分
1031 Hello World for U (20分)
Givenanystringof N (≥)characters,youareaskedtoformthecharactersintotheshapeof U.Forexample, helloworld canbeprintedas:hdellrlowoThat...
代码星球
·
2020-08-09
1031
Hello
World
for
20分
1030 Travel Plan (30分)(dijkstra 具有多种决定因素)
Atraveler'smapgivesthedistancesbetweencitiesalongthehighways,togetherwiththecostofeachhighway.Nowyouaresupposedtowriteaprogramtohelpatravelertodecidetheshortest...
代码星球
·
2020-08-09
1030
Travel
Plan
30分
dijkstra
首页
上一页
1
2
3
4
5
下一页
尾页
按字母分类:
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
其他