2016年5月23日

Hdu5036 bitset优化传递闭包

摘要: 题目链接 思路:参考题解。 /* ID: onlyazh1 LANG: C++ TASK: test */ #include<bits/stdc++.h> using namespace std; #define lson l,m,rt<<1 #define rson m+1,r,rt<<1|1 t 阅读全文

posted @ 2016-05-23 13:11 onlyAzha 阅读(268) 评论(0) 推荐(0) 编辑

Hdu5033 单调栈维护凸包

摘要: 题目链接 思路:参考了网上博客。用单调栈维护一个凸包,分别求左边的角度和右边的角度。 /* ID: onlyazh1 LANG: C++ TASK: test */ #include<bits/stdc++.h> using namespace std; #define lson l,m,rt<<1 阅读全文

posted @ 2016-05-23 10:37 onlyAzha 阅读(196) 评论(0) 推荐(0) 编辑

导航