码迷,mamicode.com
首页 >  
搜索关键字:calculate    ( 959个结果
BZOJ 1000: A+B Problem
题目 1000: A+B ProblemTime Limit: 1 Sec Memory Limit: 5 MBSubmit: 10227 Solved: 6457[Submit][Status] Description Calculate a+b Input Two integer a,b (0>...
分类:其他好文   时间:2014-11-24 00:50:23    阅读次数:313
[Python] Calculate pi With MonteCarlo
import randomimport mathm=int(raw_input("Please input the Number of Times:"))#Then Output n=10~10^mn=1for j in xrange(m): n=n*10 Total=0 for i in x...
分类:编程语言   时间:2014-11-23 13:03:42    阅读次数:211
杭电 1012 u Calculate e【算阶乘】
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1012解题思路:对阶乘递归求和反思:前面3个的输出格式需要注意,可以自己单独打印出来,也可以在for循环里面更改输出小数的位数,另外读题还是要仔细,输出的有9位小数。#includedouble sum(...
分类:其他好文   时间:2014-11-16 07:09:10    阅读次数:188
Old Calculator
描述szhhck have an old calculator bought 5 years ago.he find the old machine can just calculate expressions like this :A-B、A+B、A*B、A/B、A%B.because it is...
分类:其他好文   时间:2014-11-15 21:29:55    阅读次数:236
Calculate the formula
Problem DescriptionYou just need to calculate the sum of the formula: 1^2+3^2+5^2+……+ n ^2.InputIn each case, there is an odd positive integer n.Outpu...
分类:其他好文   时间:2014-11-10 23:09:21    阅读次数:271
A + B Problem II
Problem DescriptionI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.InputThe first line of ...
分类:其他好文   时间:2014-10-30 22:15:31    阅读次数:334
HDU2141【hash】
Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, whic...
分类:其他好文   时间:2014-10-30 20:42:05    阅读次数:139
C++ 数组指针
1 #include 2 using namespace std; 3 double calculate(double x ,double y ,double (*pf[3])(double,double)); 4 double add(double x ,double y); 5 double ....
分类:编程语言   时间:2014-10-30 16:58:43    阅读次数:222
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)...
分类:其他好文   时间:2014-10-30 13:21:42    阅读次数:276
Calculate S(n)
Problem DescriptionCalculate S(n).S(n)=13+23+33+......+n3.InputEach line will contain one integer N(1 // 运用数学公式:13 +23 +33 +……+n3 =[n(n+1)/2]2 2 3...
分类:其他好文   时间:2014-10-29 18:29:40    阅读次数:157
959条   上一页 1 ... 84 85 86 87 88 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!