hdu 3265--线段树扫描线
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=3265题意:矩形面积并思路:把切割完的面积分成四份,然后用扫描线扫描。注意要用__int64存。代码:View Code 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<cmath> 5 #include<algorithm> 6 using namespace std; 7 #define maxn 55555 8 #define lson l,m,rt& 阅读全文
posted @ 2013-02-19 13:56 acoderworld 阅读(94) 评论(0) 推荐(0)
浙公网安备 33010602011771号