摘要: Text ReverseTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11832Accepted Submission(s): 4487Problem DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words 阅读全文
posted @ 2013-04-17 17:31 翼展zjz 阅读(228) 评论(0) 推荐(0) 编辑
摘要: A Mathematical CuriosityTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19933Accepted Submission(s): 6160Problem DescriptionGiven two integers n and m, count the number of pairs of integers (a,b) such that 0 < a < b < n and (a^2+b^2 +m)/(a 阅读全文
posted @ 2013-04-17 11:07 翼展zjz 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are summed and the process is repeated. This is cont 阅读全文
posted @ 2013-04-15 14:20 翼展zjz 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 面对问题,你所提供的解决方法并不能满足问题的要求,但又需要你来解决问题,怎么办?学习,学习那些好的方法! 阅读全文
posted @ 2013-04-14 16:51 翼展zjz 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Heritage from fatherTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 4228Accepted Submission(s): 1488Problem DescriptionFamous Harry Potter,who seemd to be a normal and poor boy,is actually a wizard.Everything changed when he had his birthday of te 阅读全文
posted @ 2013-04-13 22:55 翼展zjz 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 这题也不难,也算是考察你考虑问题全面不全面!因为题目要求全部数据为非负整数,这就无形地增加了“impossible”的范围!Problem DescriptionSuperbowl Sunday is nearly here. In order to pass the time waiting for the half-time commercials and wardrobe malfunctions, the local hackers have organized a betting pool on the game. Members place their bets on the su 阅读全文
posted @ 2013-04-13 09:20 翼展zjz 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 简单进制转换! 阅读全文
posted @ 2013-04-13 08:51 翼展zjz 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 这题简单~~~Problem DescriptionFind and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when represented in hexadecimal (base 16) notation and also equals the sum of its digits when represented in duodecimal (base 12) not 阅读全文
posted @ 2013-04-12 22:03 翼展zjz 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Problem Description每 学期的期末,大家都会忙于计算自己的平均成绩,这个成绩对于评奖学金是直接有关的。国外大学都是计算GPA(grade point average) 又称GPR(grade point ratio),即成绩点数与学分的加权平均值来代表一个学生的成绩的。那么如何来计算GPA呢? 一般大学采用之计分法 A90 - 100 4 点 B80 - 89 3 点 C70 - 79 2 点 D60 - 69 1 点 E0 - 59 0 点 例如:某位学生修习三门课,其课目、学分及成绩分别为: 英文:三学分、92 分;化学:五学分、80 分;数学:二学分、60分,则GPA的 阅读全文
posted @ 2013-04-12 21:34 翼展zjz 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 递归的思想也许并不是很难理解,难理解的是递归的代码!有时候看代码的时候,我会把自己想象成计算机,按照计算机的运行逻辑在脑袋里来模拟指令的执行!但遇到递归代码的时候,我就纠结啦!为什么呢?我感觉递归的代码看似简单,但它在计算机上的实际运行并不像它看起来的那么简单!如果这时候你还把自己当成计算机,像计算机那样执行递归所要求执行的一切,那就悲剧啦!也显得太实诚啦!因为递归时思考量太大啦,好多变量都在变,而且某变量改变后还会再变回来!需要注意的点太多,很难通过人脑模拟它的全部过程!但人总归还是要比计算机聪明一些的!在遇到大量的递归嵌套时,你可以假设被嵌套的递归已实现课它的功能,得到了它所能得到的结果! 阅读全文
posted @ 2013-04-08 17:10 翼展zjz 阅读(174) 评论(0) 推荐(0) 编辑