摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4419题意:给出3种颜色,重叠会生成新的颜色,然后有一些矩形,求出每种颜色的面积。转化为二进制表示颜色:001 R ,010G,100B,011RG,101RB,....111RGB;在结构体里面加上一个len[8... 阅读全文
posted @ 2014-08-18 19:55 null1019 阅读(175) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1542 1 #include 2 #include 3 #include 4 #define maxn 200000 5 using namespace std; 6 7 int n; 8 ... 阅读全文
posted @ 2014-08-18 10:18 null1019 阅读(103) 评论(0) 推荐(0)