【杭电5053】the Sum of Cube
来源:互联网 发布:全球云计算大会 上海 编辑:程序博客网 时间:2024/05/15 04:19
暂且算简单题目吧,有点暴力-_-
用__int 64就行了
#include<stdio.h>int main(){ int n,k=0; scanf("%d",&n); while(n--){ int i,j; __int64 sum=0,l; scanf("%d %d",&i,&j); for(l=i;l<=j;l++){ sum=sum+l*l*l; } printf("Case #%d: %I64d\n",++k,sum); } return 0;}
http://acm.hdu.edu.cn/showproblem.php?pid=5053
0 0
- 【杭电】[5053]the Sum of Cube
- 杭电5053the Sum of Cube
- 【杭电5053】the Sum of Cube
- 【杭电5053】the Sum of Cube
- 【杭电 5053】the Sum of Cube
- 杭电Problem 5053 the sum of cube 【数学公式】
- 【杭电oj】5053-the Sum of Cube(立方和)
- 【杭电-oj】-5053-the Sum of Cube(求立方和数学方法)
- 杭电acm 5053 the Sum of Cube(简单水题)
- 【杭电oj】5053-the Sum of Cube(立方和)
- the Sum of Cube
- The Sum of Cube
- the Sum of Cube
- the Sum of Cube
- the Sum of Cube
- HDU-#5053 the Sum of Cube
- 【水题】HDU 5053 the Sum of Cube
- HDU - 5053 the Sum of Cube
- 如何用消息系统避免分布式事务?
- emwin的进度条控件
- 面对异议,你为什么会觉得无力争辩?
- 编程实现双链表的建立、插入、删除、求长、逆置
- Opencv中在图片上显示文本
- 【杭电5053】the Sum of Cube
- java代码九九乘法表
- 长度是怎样炼成的(二)
- 触发器
- position、float属性
- iOS开发中遇到的那些坑
- 标准库begin和end;除法的舍入规则;sizeof用于类成员;
- 长度是怎样炼成的(三)
- 用代码设置控件显示的颜色