摘要: 题意:给定一些线段的两端和一些点。问某些区域出现的点的个数的次数。。。题目给定的线段未排序!!!View Code 1 /* 2 几何+排序 3 */ 4 #include<stdio.h> 5 #include<string.h> 6 #include<stdlib.h> 7 #include<algorithm> 8 #include<iostream> 9 using namespace std;10 const int maxn = 1005;11 const double eps = 1e-8;12 struct point 阅读全文
posted @ 2013-03-26 20:37 xxx0624 阅读(250) 评论(0) 推荐(0) 编辑
摘要: solve(a,b,c)=a^b%cView Code 1 /* 2 快速求幂 3 solve(a,b,c)==a^b%c 4 */ 5 #include 6 #include 7 #include 8 #include 9 #include10 #include11 #include12 using namespace std;13 typedef __int64 int64;14 const int maxn = 10005;15 const int64 mod = 1000000007;16 int64 a[ maxn ],b[ maxn ];17 int solve( int64 m. 阅读全文
posted @ 2013-03-26 19:41 xxx0624 阅读(259) 评论(0) 推荐(0) 编辑