
acm
wshe2
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
a+b problem 大数相加
I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.The first line of the input contains an integer T(1<=T<=20) which means the number转载 2015-03-08 18:32:08 · 318 阅读 · 0 评论 -
max num问题
Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is 6 + (-1) + 5 +原创 2015-04-12 14:59:30 · 939 阅读 · 0 评论 -
humble numbers问题
Problem DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27, ... shows the first原创 2015-04-13 21:26:43 · 375 阅读 · 0 评论 -
Let the Balloon Rise
Problem DescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When the contest i原创 2015-04-15 19:57:54 · 199 阅读 · 0 评论 -
穷举搜索:Google方程式
有一个由字符组成的方程式:WWWDOT-GOOGLE=DOTCOM 每一个字母代表一个不同的数字,不能以0开头。使用穷举法就是对每个字母用0~9的数字尝试10次,由于没一个字母代表不同的数字,如果考虑0开头的情况,这样的组合有10*9*8*7*6*5*4*3*2*1=3628800组合。数据结构的定义上,要避免固定9个字符的方法,就需要定义一可变化的字符元素列表,每个字符包含3个属性:原创 2016-05-25 21:15:15 · 616 阅读 · 0 评论 -
Biorhythms问题
Description人生来就有三个生理周期,分别为体力、感情和智力周期,它们的周期长度为23天、28天和33天。每一个周期中有一天是高峰。在高峰这天,人会在相应的方面表现出色。例如,智力周期的高峰,人会思维敏捷,精力容易高度集中。因为三个周期的周长不同,所以通常三个周期的高峰不会落在同一天。对于每个人,我们想知道何时三个高峰落在同一天。对于每个周期,我们会给出从当前年份的第一天开始,到出现高原创 2016-09-26 21:39:05 · 369 阅读 · 0 评论