• 等级
  • 2018069 访问
  • 1887 原创
  • 107 转发
  • 160 排名
  • 871 评论
  • 1601 获赞

UVA353 LA5247 Pesky Palindromes【回文】

Apalindromeisasequenceofoneormorecharactersthatreadsthesamefromtheleftasitdoesfromtheright.Forexample,Z,TOTandMADAMarepalindromes,butADAMisnot.   &nbs...

2019-04-24 23:15:36

UVA11559 Event Planning【Game】

MasterMindwasinventedaround1970/71byMordecaiMeirowitz,anIsraeliPostmaster/Telecommunicationsexpert.Hisideawasatfirstturneddownbymanyoftheleadingtoycompanies,buthepersisted...

2019-04-24 22:21:20

UVA1180 LA2350 Perfect Numbers【完美数】

TheearlyGreekshavemadegreatcontributionstothefieldofmathematics.AmongthegreatmathematiciansofthistimeswereEuclidandPythagoras.The23volumeElementsofEuclidisstillregarded...

2019-04-23 18:26:55

2019 ICPC中国邀请赛(南昌)暨国际丝绸之路程序设计竞赛-网络赛题解

以下所有AC题解程序来自“仙客传奇”团队A.PERFECTNUMBERPROBLEM解题思路:先编写离线程序计算出最小的5个完美数,用那5个数编写解题程序。计算最小完美数的离线程序:I00035完美数(Perfectnumber)AC的C++程序如下:#include<stdio.h>intans[]={6,28,496,8128,3355033...

2019-04-23 16:24:08

UVA962 Taxicab Numbers【数】

ThefamousmathematicianHardyrelatesthefollowingepisodewiththe(nowalsofamous)IndianmathematicianRamanujan:IrememberoncegoingtoseehimwhenhewasillatPutney.Ihadriddenintaxi...

2019-04-21 06:35:56

UVA974 Kaprekar Numbers【Kaprekar数】

ShriDattathreyaRamachandraKaprekarwasanIndianmathematician,whosenameisassociatedwithanumberofconceptsinnumbertheory.HewasborninDahanu,nearMumbai,inIndia.Evenasasmallch...

2019-04-20 23:23:25

UVA10101 Bangla Numbers【进制+递归】

Banglanumbersnormallyuse’kuti’(10000000),’lakh’(100000),’hajar’(1000),’shata’(100)whileexpandingandconvertingtotext.Youaregoingtowriteaprogramtoconvertagivennumbertotext...

2019-04-20 21:32:19

UVA11028 Sum of Product【数列】

Givenn,therecanben!circulararrangementofthenumbers0ton−1.    LetsrepresenteverypermutationasP1P2P3...Pn!    SOP(Pk)=sumofproduct...

2019-04-20 18:29:24

UVA11970 Lucky Numbers【数列】

Everypersonhasitsownnumbersthatheconsiderslucky.Usuallythenumbersarefixedlike3or7anddonotdependonanything.ThisluckynumbermodelseemstobeveryprimitiveforJohn,sohede...

2019-04-20 18:00:53

UVA413 LA5388 POJ1492 ZOJ1338 Up and Down Sequences【序列处理】

Thequalityofpseudorandom-numbergeneratorsusedinsomecomputations,especiallysimulation,isasignificantissue.Proposedgenerationalgorithmsaresubjectedtomanyteststoestablishtheirq...

2019-04-20 09:18:02

UVA12027 Very Big Perfect Squares【数学】

Aninteger,n,iscalledaperfectsquareifthereisanotherinteger,m,suchthatn=m×m.Examplesofperfectsquaresare1,4,9,16,25,36,etc.Thatis:1,2^2,3^2,4^2,5^2,6^2,etc.&nbsp...

2019-04-20 01:12:07

UVA11202 The least possible effort【数学水题】

ForsincethefabricoftheuniverseismostperfectandtheworkofamostwiseCreator,nothingatalltakesplaceintheuniverseinwhichsomeruleofmaximumorminimumdoesnotappear.Leonhard...

2019-04-20 00:44:34

UVA10751 Chessboard【数学水题】

Akingwishestogoforawalkofasquarechessboardwiththefollowingconditions:•Eachtwoconsequentcellsofthepathmustbeadjacent,i.e.,shareanedgeoracorner(thus,acellmayhaveup...

2019-04-20 00:23:18

UVA10170 The Hotel with Infinite Rooms【数学模拟+二分查找】

ThecityofHaluaRutihasastrangehotelwithinfiniterooms.Thegroupsthatcometothishotelfollowthefollowingrules:a)Atthesametimeonlymembersofonegroupcanrentthehotel.b)Each...

2019-04-20 00:00:27

UVA493 Rational Spiral【数学模拟】

Rationalnumberscanbeexpressedasthedivisionoftwointegers.Theyarealsocountable.Thismeansthatanordercanbeplacedonthemjustlikethenaturalnumbers.Butthisorderingisnotobvio...

2019-04-19 22:54:51

UVA11697 HDU3147 Playfair Cipher【密码】

PlayfairCipherTimeLimit:2000/1000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):320AcceptedSubmission(s):106ProblemDescriptionThePlayfaircipherisa...

2019-04-19 18:22:06

UVA10625 GNU = GNU'sNotUnix【字符统计】

LetusdefineGNU,therecursiveacronymforGNU’sNotUnixwiththefollowingrecursiverules:G–>GNU’sN–>NotU–>Unix    Ineachstepweapplyalltherulessi...

2019-04-19 10:55:33

UVA10374 POJ2643 ZOJ1854 Election【map】

ElectionTimeLimit:1000MS MemoryLimit:65536KTotalSubmissions:4776 Accepted:2195DescriptionCanadahasamulti-partysystemofgovernment.Eachcandidateisgenerallyassociatedwithaparty...

2019-04-19 08:14:21

UVA10293 Word Length and Frequency【单词长度频度+strtok】

AQueen’sgraduatestudentiswritingherthesisinComputerScience.She’sveryworriedthatheradvisorwillbedispleasedbecausesheisn’tusingenoughbigwords.Beingthecunningcomputerscient...

2019-04-18 20:21:52

UVA11577 Letter Frequency【文本】

Inthisproblemweareinterestedinthefrequencyoflettersinagivenlineoftext.Specifi-cally,wewanttoknowthemostfrequentlyoccurringletter(s)inthetext,ignoringcase(tobeclear,“...

2019-04-18 14:45:00

海岛Blog

喜欢编程,喜欢生活
关注
  • 计算机软件/码农
  • 中国 山西省 太原市
奖章
  • 专栏达人
  • 持之以恒
  • 1024超级勋章
  • 勤写标兵Lv4