标签:des style blog http color io os ar java
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 162 Accepted Submission(s): 101
1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<cstdlib> 5 using namespace std; 6 7 int main() 8 { 9 int cas; 10 __int64 a,b; 11 scanf("%d",&cas); 12 for(int i=1;i<=cas;i++) 13 { 14 scanf("%I64d%I64d",&a,&b); 15 printf("Case #%d: %I64d\n",i,(b*(b+1)/2)*(b*(b+1)/2)-(a*(a-1)/2)*(a*(a-1)/2)); 16 } 17 return 0; 18 }
hdu----(5053)the Sum of Cube(签到题,水体)
标签:des style blog http color io os ar java
原文地址:http://www.cnblogs.com/gongxijun/p/3997187.html