![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
解题报告
文章平均质量分 76
u011321471
这个作者很懒,什么都没留下…
展开
-
机器人II解题报告
描述:自从xiao_wu 发明了只能向左转与向右转的机器人以后,热血沸腾的他又给机器人加了一个操作。假设机器人在二维坐标系的原点,一开始面向Y 轴正方向(北N),现在给你一个仅由’L’,’R’,’M’的串,其中L 表示向左转,R 表示向右转,M 表示向所面对的方向走一个单位的距离,试问经过操作过后,机器人的坐标和所面对的方向。北(N),西(W),东(E),南(S)。输入输出要求:Inp原创 2013-07-17 17:58:27 · 698 阅读 · 0 评论 -
Function解题报告
题目摘要:Define a functionf(n)=(f(n-1)+1)/f(n-2). You already got f(1) and f(2). Now, give you a numberm, please find the value of f(m).题目大意:给出f(1)和f(2)以及m的值,根据给出的函数关系,求f(m)输入输出要求:InputThereare se原创 2013-07-10 20:19:43 · 654 阅读 · 0 评论 -
Brackets解题报告
题目摘要:This year MK is 5 years old. So hedecides to learn somearithmetic But he wasconfused by how to write the brackets. He has already known that the bracketsshould match when writing them correctly原创 2013-07-10 20:37:18 · 551 阅读 · 0 评论 -
Matrix Multiplication解题报告
题目摘要:Johnny and John are good friends.Johnny is going to take the entrance exams for postgraduate schools.Recently, he is reviewing Linear Algebra.Johnny always says that he is very skillful at matr原创 2013-07-12 21:58:43 · 783 阅读 · 0 评论 -
Matrix Operation解题报告
题目摘要:You are given a matrix M of type1234x5678. It is initially filled with integers 1...1234x5678 in row major order.Your task is to process a list of commands manipulating M. There are 4 types ofcom原创 2013-07-13 18:38:18 · 718 阅读 · 0 评论 -
Help Johnny解题报告
题目摘要:Poor Johnny is so busy this term.His tutor threw lots of hard problems to him and demanded him to accomplishthose problems in a month. What a wicked tutor! After cursing his tutorthousands of t原创 2013-07-14 10:43:40 · 507 阅读 · 0 评论 -
Eddy's mistakes解题报告
题目摘要:Eddy usually writes articles ,buthe likes mixing the English letter uses, for example "computerscience" is written frequently "coMpUtEr scIeNce" by him, thismistakes lets Eddy's English teacher原创 2013-08-04 20:15:52 · 624 阅读 · 0 评论 -
An Easy Task解题报告
题目摘要:Ignatius wasborn in a leap year, so he want to know when he could hold his birthday party.Can you tell him?Given a positive integers Y which indicate the start year, and a positiveinteger N, yo原创 2013-08-02 12:22:13 · 1356 阅读 · 0 评论 -
Elevator解题报告
题目摘要:The highest building in our cityhas only one elevator. A request list is made up with N positive numbers. Thenumbers denote at which floors the elevator will stop, in specified order. Itcosts 6原创 2013-07-28 21:23:18 · 922 阅读 · 0 评论 -
Friday解题报告
题目摘要:Is Friday the 13th really anunusual event?That is, does the 13th of the month land ona Friday less often than on any other day of the week? To answer this question,write a program that will com原创 2013-07-06 17:03:38 · 782 阅读 · 0 评论 -
AC Me解题报告
题目摘要:Ignatius is doing his homework now.The teacher gives him some articles and asks him to tell how many times eachletter appears.It's really easy, isn't it? So come on and AC ME.题目大意:写一串字符,算出其中每原创 2013-08-11 20:52:47 · 787 阅读 · 0 评论 -
Death Knight Hero解题报告
题目摘要:There once was a champion of WoWArthasdk the name he was bestowedHe Death Gripped you to his sideHis Chains of Ice stopped your strideAnd Obliterates made you say"OWW!"But one day our h原创 2013-08-23 20:35:19 · 700 阅读 · 0 评论 -
Elevator Trouble解题报告
题目摘要:You are on your way to your firstjob interview as a program tester, and you are already late. The interview isin a skyscraper and you are currently in floor s, where you see an elevator.Upon en原创 2013-08-23 21:02:31 · 833 阅读 · 0 评论 -
一二三解题报告
题目描述:你弟弟刚刚学会写英语的一(one)、二(two)和三(three)。他在纸上写了好些一二三,可惜有些字母写错了。已知每个单词最多有一个字母写错了(单词长度肯定不会错),你能认出他写的啥吗?输入输出要求:输入 第一行为单词的个数(不超过10)。以下每行为一个单词,单词长度正确,且最多有一个字母写错。所有字母都是小写的。 输出 对于每组测试数据,输出一行,即该单词原创 2013-08-25 16:15:58 · 1481 阅读 · 0 评论 -
盒子游戏解题报告
题目描述:有两个相同的盒子,其中一个装了n个球,另一个装了一个球。Alice和Bob发明了一个游戏,规则如下:Alice和Bob轮流操作,Alice先操作。每次操作时,游戏者先看看哪个盒子里的球的数目比较少,然后清空这个盒子(盒子里的球直接扔掉),然后把另一个盒子里的球拿一些到这个盒子中,使得两个盒子都至少有一个球。如果一个游戏者无法进行操作,他(她)就输了。下图是一个典型的游戏: 面对两原创 2013-08-25 16:05:43 · 1255 阅读 · 0 评论 -
Help a PhD candidate out!解题报告
题目摘要:Jon Marius forgot how to add twonumbers while doing research for his PhD. And now he has a long list of additionproblems that he needs to solve, in addition to his computer science ones!Canyou原创 2013-08-25 16:30:53 · 948 阅读 · 0 评论 -
Gift1解题报告
题目摘要:A group of NP (2 ≤ NP ≤ 10)uniquely named friends has decided to exchange gifts of money. Each of thesefriends might or might not give some money to any or all of the other friends.Likewise, each原创 2013-07-06 17:04:56 · 624 阅读 · 0 评论 -
Bone Collector解题报告
题目摘要:Many years ago , in Teddy’shometown there was a man who was called “Bone Collector”. This man like tocollect varies of bones , such as dog’s , cow’s , also he went to the grave …The bone coll原创 2013-07-18 20:33:46 · 625 阅读 · 0 评论 -
波动序列解题报告
描述:有一个长度为N 的整数序列,序列里面的数是两两不同的,现在要在里面找一个波动序列,这个序列越长越好。比如有波动序列{a0,a1,a2…an},则a0 > a1 a3 输入输出要求:Input第一行输入一个数T,代表有T 个任务,T 不大于50。对于每个任务,输入格式为N a0 a1 a2 … aN其中N Output对于每个任务,输出最长的波动序原创 2013-07-17 17:53:20 · 694 阅读 · 0 评论 -
巧克力解题报告
描述:布欧可以把人变成巧克力吃了来增加他的能量,也有可能减少。现在布欧变了n*m 个巧克力,并把巧克力排成一个n*m 的矩形,现在布欧想选择一个子矩形,把这个子矩形吃了来增加他的能量,可他不知道选哪个才能使他的能量增加值p最大,布欧也可以选择一个都不吃,这样p = 0。现在布欧要你告诉他p 的最大值,不然他就先把你变成巧克力吃了!输入输出要求:Input第一行:一个整数T 代表测试原创 2013-07-17 18:06:36 · 846 阅读 · 0 评论 -
饭卡解题报告
描述:电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。某天,食堂中有n种菜出售,每种菜可购买一次。已知每种菜的价格以及卡上的余额,问最少可使卡上的余额为多少。输入输出要求:Input多组数据。对于每组数据原创 2013-07-18 20:42:06 · 779 阅读 · 0 评论 -
Mixing Milk解题报告
题目摘要:Since milk packaging is such a lowmargin business, it is important to keep the price of the raw product (milk) aslow as possible. Help Merry Milk Makers get the milk they need in the cheapestpo原创 2013-07-19 15:47:09 · 662 阅读 · 0 评论 -
Ride解题报告
题目摘要:It is a well-known fact that behindevery good comet is a UFO. These UFOs often come to collect loyal supportersfrom here on Earth. Unfortunately, they only have room to pick up one group offollow原创 2013-07-06 11:22:42 · 588 阅读 · 0 评论 -
palsquare解题报告
题目摘要:Palindromes are numbers that readthe same forwards as backwards. The number 12321 is a typical palindrome.Given a number base B (2 <= B <= 20base 10), print all the integers N (1 <= N <= 300 ba原创 2013-07-06 17:06:50 · 574 阅读 · 0 评论 -
Transform解题报告
题目摘要:A square pattern of size N x N (1<= N <= 10) black and white square tiles is transformed into anothersquare pattern. Write a program that will recognize the minimum transformationthat has been ap原创 2013-07-06 22:04:46 · 864 阅读 · 0 评论 -
Arithmetic Progression解题报告
题目摘要:“In mathematics, an arithmeticprogression (AP) or arithmetic sequence is a sequence of numbers such that thedifference between the consecutive terms is constant. For instance, thesequence 5, 7, 9原创 2013-07-10 20:06:10 · 1206 阅读 · 0 评论 -
ZZY的宠物解题报告
描述ZZY领养了一对刚刚出生的不知名小宠物..巨萌巨可爱!!...小宠物的生命为5个单位时间并且不会在中间出意外翘辫子(如: 从0出生能活到5但活不到6)..小宠物经过2个单位时间成熟..刚刚成熟的一对小宠物能立即生育6只新的小宠物(如: 从0出生的一对在2时成熟并进行第一次生育)...小宠物是很忠诚的..不会在中途换伴侣..每对小宠物生育一次这一对的生育能力就会降低2个..也就是说一对小宠物原创 2013-07-11 10:26:53 · 567 阅读 · 0 评论 -
蜗牛!快爬!解题报告
描述:很久以前有一只蚂蚁,某天在路上走着走着,突然看见了一只蜗牛,爬的很慢。心想自己虽然比它小,可是跑得比它快,于是蚂蚁想跟蜗牛进行一次马拉松比赛,想证明它的实力。蚂蚁跟蜗牛商量后决定在星期六下午进行马拉松比赛。The day is coming….比赛跑道为一条直线,Unlucky!!跑道上有很多坑。注意哦,坑!蜗牛想知道它掉下坑底后,爬上来需要多少时间,你的任务是帮忙蜗牛算出它掉入每个原创 2013-07-11 10:49:31 · 758 阅读 · 0 评论 -
A simple problem解题报告
题目摘要:Dreamone has a lovely cat. The catcan comfort you if you are very dejected, she can also play with you ifyou are very bored. So Dreamone loves hervery much. Of course, you bet, she can also mak原创 2013-07-12 21:38:20 · 724 阅读 · 0 评论 -
Little Sheep and a paper解题报告
题目摘要:One day, Little Sheep gets anAK(all kill) in a contest, so he is very boring, then he just plays with a paper.The paper has two faces called A and B. Sheep _nds the paper can be folded forin_nity原创 2013-07-15 22:06:22 · 641 阅读 · 0 评论 -
Delete it解题报告
描述:克林在打一行字母时总是会打多一个字符,比如想打”july”时会打成”juuly”,这样他需要删掉其中一个’u’。克林想知道他可以删掉哪个位置的字符就可以变成他真正想打的一行字母。输入输出要求:Input第一行一个整数:T (测试个数)每个测试输入两行,两个字符串(全是小写字母)串长为1 到1000000第一个串长度刚好比第二个的长度大一Output每个测试原创 2013-07-17 15:16:24 · 813 阅读 · 0 评论 -
Fibonacci Again解题报告
题目摘要:Thereare another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) +F(n-2) (n>=2).题目大意:另外一种斐波那契数列,第一项为7,第二项为11。输入输出要求:InputInput consists of a sequence of lines, eachcontainin原创 2013-07-29 19:41:35 · 749 阅读 · 0 评论 -
Milk2解题报告
题目摘要:Three farmers rise at 5 am eachmorning and head for the barn to milk three cows. The first farmer beginsmilking his cow at time 300 (measured in seconds after 5 am) and ends at time1000. The seco原创 2013-07-27 19:13:40 · 582 阅读 · 0 评论 -
Dualpal解题报告
题目摘要:A number that reads the same fromright to left as when read from left to right is called a palindrome. Thenumber 12321 is a palindrome; the number 77778 is not. Of course, palindromeshave neither原创 2013-07-06 17:06:03 · 504 阅读 · 0 评论