- 博客(3)
- 收藏
- 关注
原创 hdu 3436 Queue-jumpers (经典离散化,树状数组实现lower_bound)
题目:http://acm.hdu.edu.cn/showproblem.php?pid=3436 我的离散化是把 Top和Query的位置离散,然后把两两之间的位置合并成一个点,并记录个数num[i], 被Top, Query询问的位置也是一个点num[i] = 1; 小细节是左右两端的区间也要缩点。 #include #include #include #include #incl
2013-02-26 20:58:57 811
原创 hdu 3949 Xor (高斯消元解决xor问题)
题目 :http://acm.hdu.edu.cn/showproblem.php?pid=3949 #include #include #include #include #include #include #include #include using namespace std; #define M 10010 #define inf 1LL<<60 #define ll long
2013-02-24 22:00:35 1218
原创 poj 3225 Help with Intervals( 区间替换和取反)
题目 :http://poj.org/problem?id=3225 #include #include #include #include #include #include #include using namespace std; #define M 65540<<1 #define inf 1LL<<60 #define ll long long struct Node {
2013-02-13 18:13:49 402
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人