uva 10790
2016-04-12 13:06
225 查看
就是个公式,数学题。但是要注意输入格式哦。。。。
#include<stdio.h> int main() { long long a,b,ca=1; while(1) { scanf("%I64d%I64d",&a,&b); if(a+b==0) break; else { long long sum=a*(a-1)/2*b*(b-1)/2; printf("Case %lld: %lld\n",ca++,sum); } } return 0; }
相关文章推荐
- 大型分布式C++框架《三:序列化与反序列化》
- 单词表达中的语言规律Linguistic Regularities in word representations
- LintCode_165_合并两个排序链表
- C++作业3
- 社区“四点半课堂”解了家长难题
- javascript面向对象编程笔记
- c++实验三----个人所得税计算器
- UITableView & UITableViewController
- 微信支付,少1分钱bug
- 【目标检测】Fast RCNN算法详解
- Android Studio 入门(转)
- LightOJ 1341 Aladdin and the Flying Carpet 数学
- Linux 基础--D1
- Linux EMMC子系统分析-初始化流程
- android RelativeLayout 内容居中解决办法
- JavaBean 对象与 Map的纠纷
- selector+shape
- HDU 4217 Data Structure?(线段树的查找和更新)
- 将图像转换为特征向量Transforming Images to Feature Vectors
- Claris and XOR (数位dp)