#include#include int main () { printf("n e\n"); printf("- -----------\n"); printf("0 1\n"); printf("1 1\n"); printf("2 2.5\n"); double t=0.5,sum=2....
分类:
其他好文 时间:
2015-03-10 10:11:14
阅读次数:
111
详细题目点击:http://acm.hdu.edu.cn/showproblem.php?pid=1002
Problem Description
I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.
...
分类:
其他好文 时间:
2015-03-09 09:28:55
阅读次数:
178
Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from
S1. Your task is simply to calculate S1 - S2 for any given strings. However,...
分类:
其他好文 时间:
2015-03-06 11:21:17
阅读次数:
140
Max SumProblem 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,...
分类:
其他好文 时间:
2015-03-05 19:19:15
阅读次数:
161
四则运算
描述:
请实现如下接口
/* 功能:四则运算
* 输入:strExpression:字符串格式的算术表达式,如: "3+2*{1+2*[-4/(8-6)+7]}"
* 返回:算术表达式的计算结果
*/
public static int calculate(String strExpression)
{
...
分类:
编程语言 时间:
2015-03-05 13:05:28
阅读次数:
269
Problem Description
Recall the definition of the Fibonacci numbers:
f1 := 1
f2 := 2
fn := fn-1 + fn-2 (n >= 3)
Given two numbers a and b, calculate how many Fibonacci numbers are in the ...
分类:
其他好文 时间:
2015-03-04 16:56:45
阅读次数:
126
Given n distinct positive integers, integer k (k <= n) and a number target.Find k numbers where sum is target. Calculate how many solutions there are?...
分类:
其他好文 时间:
2015-03-04 12:59:04
阅读次数:
188
Calculate Field & Rollup Field 可以说是2个比较给力的Feature,随着Dynamics CRM版本的不断更新,这样激动人心的feature可是一个接一个的冒出来。就Calculate Field和Rollup Field来说,之前实现这样的功能都需要开发人员参与,但是现在只需要简单的手工配置就可以简单完成。...
分类:
其他好文 时间:
2015-03-03 16:47:26
阅读次数:
188
在报工时中,把所有数据都填好后,保存时报错,如下:错误提示的完整内容:CK466 - No price could be determined for internal activity &1 &2 - CK 466DiagnosisThe system could not calculate a ...
分类:
其他好文 时间:
2015-03-01 08:52:52
阅读次数:
361
Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum.Input Specification:Each input file contains one...
分类:
其他好文 时间:
2015-02-28 20:15:53
阅读次数:
129