Uva 10790 - How Many Points of Intersection?
2013-03-28 19:34
471 查看
水题一只
上面取2个点,下面取两个点就一定有一个交点
Cn2即好
试验了一下
Uva接受lld
不认I64d
上面取2个点,下面取两个点就一定有一个交点
Cn2即好
试验了一下
Uva接受lld
不认I64d
#include<stdio.h> #define LL long long LL C2(LL x){ return x*(x-1)/2; } int main(){ LL a,b; int t=0; while(scanf("%lld%lld",&a,&b)!=EOF){ if(a==0&&b==0)break; printf("Case %d: ",++t); printf("%lld\n",C2(a)*C2(b)); } return 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?
- 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?
- 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?
- 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?