Banner Home Page DIY Contests Problems Ranklist Status Statistics
1034数据再次加强,如果还能水过我不管了……

再调用——函数嵌套

Time Limit : 3000/1000ms (Java/Other)   Memory Limit : 65535/32768K (Java/Other)
Total Submission(s) : 52   Accepted Submission(s) : 41

Font: Times New Roman | Verdana | Georgia

Font Size:

Problem Description

函数嵌套是只在一个函数中调用另一个函数,PS:其实main本身也是函数
结合C++教材或查阅资料,了解函数嵌套的相关信息,完成此题
已知F(x) = x * 3 + ((x - 1) * 6 + 4) + 3;
G(x) = F(x) * 2 – F(x) * F(x - 1);
K(x) = G(x) * (G(2) - F(4));
给出两个正整数a,b,求K(a) - K(b)

Input

输入包含多组数据
每组数据包含两个正整数a,b,均不超过100

Output

对于每组数据,输出K(a) – K(b)的值

Sample Input

1 1
2 9

Sample Output

0 
-1071630

Author

916852

Statistic | Submit | Back