Digit NumberTime Limit:10 Seconds Memory Limit:65536 KBGiven an integernand an integerm, please calculate the minimal multiple ofnwhich consists of ex...
分类:
其他好文 时间:
2015-05-07 06:22:22
阅读次数:
90
DescriptionA number sequence is defined as following:S(1)=1,S(2)=11,S(3)=21,S(4)=1211,S(5)=111221,S(6)=312211,……Now, we need you to calculate the leng...
分类:
其他好文 时间:
2015-05-06 17:04:49
阅读次数:
143
想要学习javascript中的面向对象编程(oop),首先就要了解原型及原型链。先来个例子,了解原型1 function Foo(y){ 2 this.y = y; 3 } 4 Foo.prototype.x = 10; 5 Foo.prototype.calculate = function(z...
分类:
编程语言 时间:
2015-05-06 01:22:13
阅读次数:
154
问题: (n int main() { int f[10]={1,1,2,6,24,120,720,5040,40320,362880}; int n; double e; printf("n e\n"); printf("- -----------\n"); printf("%d %...
分类:
其他好文 时间:
2015-05-05 10:10:35
阅读次数:
177
function days_in_month($month, $year) { // calculate number of days in a month return $month == 2 ? ($year % 4 ? 28 : ($year % 100 ? 29 : ($year...
分类:
Web程序 时间:
2015-05-04 15:16:43
阅读次数:
195
题目:A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calculate the ...
分类:
其他好文 时间:
2015-05-04 13:35:13
阅读次数:
111
Description
There are many parallel lines on the ground with the distance of D between each adjacent two. Now, throwing a needle randomly on the ground,please calculate the possibility of that the ...
我的队友是52吴舒婷,博客内容主要是白盒黑盒的测试数据分析我们通过简单的四则运算来进行程序的测试与封装我们主要完成的是事情(1)封装:将运算要运用的方法进行封装文件主要有三个:Calculate(存放运算要用得到方法)、CalcuTest(主要main方法)、Test(测试)Calculate中主要...
分类:
其他好文 时间:
2015-04-30 19:56:29
阅读次数:
110
点击打开杭电1003
Problem Description
Given 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 i...
分类:
其他好文 时间:
2015-04-29 11:46:20
阅读次数:
118
Max Sum
Time Limit: 2000ms Memory limit: 32768K 有疑问?点这里^_^
题目描述
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, ...
分类:
其他好文 时间:
2015-04-27 21:51:49
阅读次数:
169