10790 - How Many Points of Intersection?
来源:互联网 发布:2016年非农数据统计 编辑:程序博客网 时间:2024/06/06 10:55
题目:10790 - How Many Points of Intersection?
题目大意:求上下的点两两连成直线的交点个数。
公式:(m-1)*m*(n-1)*n/4;注意:数值相乘会很大,用int不够。
#include<stdio.h>int m, n, i ;int main() {i = 0;while(scanf("%d %d", &m, &n) != EOF && m && n) {i++; printf("Case %d: %ld\n", i, (long long)(n - 1)* n * m * (m - 1)/4);}return 0;}
0 0
- UVa 10790 How Many Points of Intersection?
- uva 10790 How Many Points of Intersection?
- uva 10790 - How Many Points of Intersection?
- uva-10790-How Many Points of Intersection?
- UVa 10790 - How Many Points of Intersection?
- 10790 - How Many Points of Intersection?
- Uva 10790 - How Many Points of Intersection?
- 10790 - How Many Points of Intersection?
- UVa 10790 - How Many Points of Intersection?
- 10790 - How Many Points of Intersection?
- UVA 10790 How Many Points of Intersection?
- uva 10790 - How Many Points of Intersection
- uva 10790 How Many Points of Intersection?
- UVa 10790 How Many Points of Intersection?
- 10790 - How Many Points of Intersection?
- uva - 10790 - How Many Points of Intersection?
- UVa 10790 - How Many Points of Intersection?
- UVa 10790 - How Many Points of Intersection?
- C++常见的编译错误中英对应翻译
- 创建节点的应用
- 正则表达式
- conj和 cons的区别
- 图论知识点
- 10790 - How Many Points of Intersection?
- 2013给自己一个总结
- 数学之路-群体行为与群体智能(2)
- Installing Java 7 Update 25 on 12.04 LTS?
- iOS开发常用的第三方类库
- js document.all的用法 .
- [OpenCV] -- win7下配置OpenCV的Qt开发环境
- iOS杂记(二)分享给大家,总有一条是你想要的!
- nyoj 420-p次方求和