#1009

BZOJ1009 [HNOI2008]GT考试 矩阵

阿申准备报名参加GT考试,准考证号为N位数X1X2….Xn(0<=Xi<=9),他不希望准考证号上出现不吉利的数字。他的不吉利数学A1A2…Am(0<=Ai<=9)有M位,不出现是指X1X2…Xn中没有恰好一段等于A1A2…Am.A1和X1...

Codeforces 1009G Allowed Letters FMT,二分图,二分图匹配,霍尔定理

原文链接https://www.cnblogs.com/zhouzhendong/p/CF1009G.html  给定一个长度为$n$的字符串$s$。并给定$m$条限制,第$i$条限制声明了第$i$个位置的字符可以取的值。如果没有声明表示可以任意取值。  求一个字符串$s$的排列,在满足$m$条限制的同时,使得字典序最...

Gym 100952J&&2015 HIAST Collegiate Programming Contest J. Polygons Intersection【计算几何求解两个凸多边形的相交面积板子题】

timelimitpertest:2secondsmemorylimitpertest:64megabytesinput:standardinputoutput:standardoutputWewillnotwasteyourtime,itisastraightforwardproblem.Givenmultiplep...

Gym 100952I&&2015 HIAST Collegiate Programming Contest I. Mancala【模拟】

timelimitpertest:3secondsmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputMancalaisatraditionalboardgameplayedinAfrica,MiddleEastandAsia.I...

Gym 100952H&&2015 HIAST Collegiate Programming Contest H. Special Palindrome【dp预处理+矩阵快速幂/打表解法】

timelimitpertest:1secondmemorylimitpertest:64megabytesinput:standardinputoutput:standardoutputAsequenceofpositiveandnon-zerointegerscalledpalindromicifitcanbere...

Gym 100952G&&2015 HIAST Collegiate Programming Contest G. The jar of divisors【简单博弈】

timelimitpertest:2secondsmemorylimitpertest:64megabytesinput:standardinputoutput:standardoutputAliceandBobplaythefollowinggame.TheychooseanumberNtoplaywith.Ther...

Gym 100952F&&2015 HIAST Collegiate Programming Contest F. Contestants Ranking【BFS+STL乱搞(map+vector)+优先队列】

timelimitpertest:1secondmemorylimitpertest:24megabytesinput:standardinputoutput:standardoutputAhmadisoneofthebeststudentsinHIAST,andalsoaverygoodproblemsSolver....

Gym 100952E&&2015 HIAST Collegiate Programming Contest E. Arrange Teams【DFS+剪枝】

timelimitpertest:2secondsmemorylimitpertest:64megabytesinput:standardinputoutput:standardoutputSyrianCollegiateProgrammingContest(SCPC)isthequalifiedroundforthe...

Gym 100952D&&2015 HIAST Collegiate Programming Contest D. Time to go back【杨辉三角预处理,组合数,dp】

timelimitpertest:1secondmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputYouhavebeenoutofSyriaforalongtime,andyourecentlydecidedtocomeback...

Gym 100952C&&2015 HIAST Collegiate Programming Contest C. Palindrome Again !!【字符串,模拟】

timelimitpertest:1secondmemorylimitpertest:64megabytesinput:standardinputoutput:standardoutputGivenstringwithNcharacters,yourtaskistotransformittoapalindromestr...

Gym 100952B&&2015 HIAST Collegiate Programming Contest B. New Job【模拟】

timelimitpertest:1secondmemorylimitpertest:64megabytesinput:standardinputoutput:standardoutputThisisthefirstdayforyouatyournewjobandyourbossasksyoutocopysomefil...

Gym 100952A&&2015 HIAST Collegiate Programming Contest A. Who is the winner?【字符串,暴力】

timelimitpertest:1secondmemorylimitpertest:64megabytesinput:standardinputoutput:standardoutputAbigmarathonisheldonAl-MazaRoad,Damascus.Runnerscamefromalloverthe...

1009. Product of Polynomials (25)

Thistime,youaresupposedtofindA*BwhereAandBaretwopolynomials.InputSpecification:Eachinputfilecontainsonetestcase.Eachcaseoccupies2lines,andeachlinecontainstheinf...
代码星球 ·2020-04-08

1009. 说反话 (20)

给定一句英语,要求你编写程序,将句中所有单词的顺序颠倒输出。输入格式:测试输入包含一个测试用例,在一行内给出总长度不超过80的字符串。字符串由若干单词和若干空格组成,其中单词是由英文字母(大小写有区分)组成的字符串,单词之间用1个空格分开,输入保证句子末尾没有多余的空格。输出格式:每个测试用例的输出占一行,输出倒序后的...
代码星球 ·2020-04-08

Hdu 1009 FatMouse' Trade

TimeLimit:2000/1000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):43156    AcceptedSubmissio...
代码星球 ·2020-03-31
首页上一页12下一页尾页