HDU--5053 the Sum of Cube
来源:互联网 发布:未来之战网络不稳定 编辑:程序博客网 时间:2024/05/16 09:25
题意:求两个数之间的数的立方和
注意:要注意数据的范围
代码实现如下:
#include<stdio.h>const int Max=10010;long long aa[Max];int main(){ long long i; for(i=0;i<Max;i++) aa[i]=i*i*i; int t; while(scanf("%d",&t)==1){ int cnt=0; while(t--){ long long a,b,sum=0; cnt++; scanf("%I64d%I64d",&a,&b); for(i=a;i<=b;i++) sum+=aa[i]; printf("Case #%d: %I64d\n",cnt,sum); } } return 0;}
0 0
- HDU-#5053 the Sum of Cube
- 【水题】HDU 5053 the Sum of Cube
- HDU - 5053 the Sum of Cube
- HDU 5053 the Sum of Cube
- HDU--5053 the Sum of Cube
- hdu 5053 the Sum of Cube 水题
- HDU-5053 the Sum of Cube
- HDU 5053 the Sum of Cube
- hdu 5053 the Sum of Cube
- 【hdu 5053】the Sum of Cube
- Hdu-5053 the Sum of Cube(水题)
- HDU-5053 the Sum of Cube 签到到到到~
- HDU——5053 the Sum of Cube
- hdu 5053 the Sum of Cube(上海网络赛)
- hdu 5053 the Sum of Cube(水)
- HDU-5053-the Sum of Cube【打表】
- the Sum of Cube
- The Sum of Cube
- MyEclipse中Add Hibernate Capabilities 不可用的解决办法
- 腾讯云的Container实现
- [挑战程序设计竞赛] POJ 1328 - Radar Installation
- java.util.Scanner应用浅析
- 有关session会话过期,子页面变成登陆页面的解决办法
- HDU--5053 the Sum of Cube
- Java在现实世界中都运用在哪里
- Sicily 1001. 无路可逃?
- oracle数据备份与恢复
- NSUrlConnection 下载文件
- 关于Android中Animation的停止
- 找不到类型或命名空间名称“CrystalDecisions”(是否缺少 using 指令或程序集引用?)
- Docker最佳实践!尽在2014 Container技术大会
- 经典重读《信号与系统》-第二章