http://acm.hdu.edu.cn/showproblem.php?pid=5053题目大意: 求出A^3+(A+1)^3+(A+2)^3+...+B^3和是多少解题思路: 设f(n)=1~n的立方和,则A^3+(A+1)^3+(A+2)^3+...+B^3=f(B) - f(A - 1.....
分类:
其他好文 时间:
2014-09-29 16:25:43
阅读次数:
185
开篇介绍大多数情况下我们的 SSIS 包都会配置在 SQL Agent Job 中周期性的按计划执行,比如每天晚上调用 SSIS 包刷新数据,处理 Cube 等。一旦 SSIS 包中出现任何异常,报错,那么配置在 SQL Agent Job 中的通知,邮件提醒就会把这些错误信息发邮件到指定的用户或者...
HDU5053the Sum of Cube(水题)
题目链接
题目大意:给你L到N的范围,要求你求这个范围内的所有整数的立方和。
解题思路:注意不要用int的数相乘赋值给longlong的数,会溢出。
代码:
#include
#include
const int N = 10005;
typedef long long ll;
ll t[N];
void ...
分类:
其他好文 时间:
2014-09-28 21:30:25
阅读次数:
164
the Sum of Cube
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 405 Accepted Submission(s): 224
Problem Description
A range is g...
分类:
其他好文 时间:
2014-09-28 18:03:45
阅读次数:
135
题意 求给定区间[a,b] 所有整数的立方和 0
注意10000^3会爆int
#include
using namespace std;
typedef long long ll;
int main()
{
int cas;
ll a, b, ans;
scanf("%d", &cas);
for(int k = 1; k <= cas; ++k)
...
分类:
其他好文 时间:
2014-09-28 13:31:12
阅读次数:
184
Problem Description
A range is given, the begin and the end are both integers. You should sum the cube of all the integers in the range.
Input
The first line of the input is T(1
Each...
分类:
其他好文 时间:
2014-09-28 01:35:40
阅读次数:
151
HDU 5053 the Sum of Cube(数学求立方和)...
分类:
其他好文 时间:
2014-09-27 23:56:50
阅读次数:
208
/*
给你一个边长n的正方体,切割成n*n*n个单位体积的小正方体,求所有公共顶点数<=2的小正方体的对数。
公共点的数目可能有:0,1,2,4.
我们用总的对数减掉有四个公共点的对数就可以了。
总的对数:n^3*(n^3-1)/2(一共有n^3块小方块,从中选出2块)
而4个交点的立方体对是两个立方体共面的情况,
所以我们只要求出大的立方体一共有多少个单位面积的公共面就可以了,
既所有单位立...
分类:
其他好文 时间:
2014-09-27 23:04:52
阅读次数:
173
the Sum of CubeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 162Accepted Submission(s): 101Probl...
分类:
其他好文 时间:
2014-09-27 22:56:42
阅读次数:
254
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5053
the Sum of Cube
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 140 Accepted ...
分类:
其他好文 时间:
2014-09-27 22:16:30
阅读次数:
191