#Uva

UVa 11461

题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2456题意输入两个整数a和b,输出从a到b(包含a和b)的平方数的个数。直到输入00时程序结...
代码星球 ·2020-05-25

UVA 1030

题目链接:uva1030-ImageIsEverything题目大意:有一个最大为n*n*n的立方体的一个不规整立体,由若干个1*1*1的小正方体构成(每一个小正方体被涂成不同的颜色),给出n,然后是该立体的前、左、后、右、上和下的视图,然后判断该立体的最大体积是多少。解题思路:首先先把所有视图上为‘.'的...
代码星球 ·2020-05-11

UVA 10881

题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1822题意:有很多只蚂蚁在一条直线上,每个蚂蚁移动速度都是1,并且有一个初始方向。并且当相邻两...
代码星球 ·2020-05-11

UVALive 3882

题目链接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1883题意:n个人围成一圈,第一次删第m个人,然后每数K个删一个人,求最后一个...
代码星球 ·2020-05-11

UVA 10382

n sprinklersareinstalledinahorizontalstripofgrass l meterslongand w meterswide.Eachsprinklerisinstalledatthehorizontalcenterlineofthest...
代码星球 ·2020-05-11

UVA 11039-Building designing【贪心+绝对值排序】

Timelimit:3.000secondsAnarchitectwantstodesignaveryhighbuilding.Thebuildingwillconsistofsomefloors,andeachfloorhasacertainsize.Thesizeofafloormustbegreaterthanthes...

UVA 11636-Hello World!(水题,猜结论)

Timelimit:1.000secondsWhenyoufirstmadethecomputertoprintthesentence“HelloWorld!”,youfeltsohappy,notknowinghowcomplexandinterestingtheworldofprogrammi...

UVAlive 3708 Graveyard(最优化问题)

题目描述:   在周长10000的圆上,初始等距的放置着n个雕塑,现在新加入m个雕塑,要使得这n+m个雕塑仍然等距,问原来n个雕塑要移动的距离总和的最小值.原题地址:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=15...

Uva 11300 Spreading the Wealth(递推,中位数)

SpreadingtheWealthACommunistregimeistryingtoredistributewealthinavillage.Theyhavehavedecidedtositeveryonearoundacirculartable.First,everyonehasconvertedallofthe...

Uva 11729 Commando War (简单贪心)

Thereisawaranditdoesn'tlookverypromisingforyourcountry.Nowit'stimetoact.Youhaveacommandosquadatyourdisposalandplanninganambushonanimportantenemycamplocatednearb...

UVA 11292 Dragon of Loowater(简单贪心)

Onceuponatime,intheKingdomofLoowater,aminornuisanceturnedintoamajorproblem.TheshoresofRellauCreekincentralLoowaterhadalwaysbeenaprimebreedinggroundforgeese.Duet...

UVa 11743

题目:推断卡号是否合法,给你4组4位的数字。偶数位的2倍的位和加上奇数位的和,推断尾数是否为0。分析:简单题,模拟。直接依照提议推断就可以。说明:460题,加油!#include<iostream>#include<cstdlib>usingnamespacestd;chardata[4][5]...
代码星球 ·2020-04-06

HDU 3232 &amp;&amp; UVA 12230 (简单期望)

TotalSubmission(s):738    AcceptedSubmission(s):387ProblemDescriptionYouliveinavillagebutworkinanothervillage.Youdecidedtofollowthestraightp...
代码星球 ·2020-04-06

Uva 10081 Tight words (概率DP)

Timelimit:3.000secondsGivenisanalphabet {0,1,...,k}, 0<=k<=9 .Wesaythatawordoflength n overthisalphabetis tightifanytwoneigh...

UVa11183

ProblemITeenGirlSquad Input: StandardInputOutput: StandardOutput --3springrollsplease.--MSG'D!!--Oh!Mystomachlining!StrongBadYouarepartofagr...
代码星球 ·2020-04-06
首页上一页...23456下一页尾页