刷OJ
文章平均质量分 58
feidewu
这个作者很懒,什么都没留下…
展开
-
杭电——Max Sum
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原创 2013-10-21 00:11:36 · 1414 阅读 · 0 评论 -
杭电OJ——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原创 2013-10-21 00:05:28 · 2764 阅读 · 0 评论 -
大数相减
大数相减基本都是采用字符数组处理,需要注意的是够不够减、结果中高位的0。对于小数减大数,都是用大数减小数,结果在前面加一个“—”符号就行了。这里为方便点,假设是大数减小数。void BigNum(char *str1, char *str2){ if(str1 == NULL || str2 == NULL) return; int len1 = strlen(str1);原创 2013-10-21 00:24:18 · 4825 阅读 · 1 评论