摘要: LCA模板题,用的方法是转化为RMQ问题来求解,各种WA,折腾了一整天,哎~~~ 1 #include <iostream> 2 #include <cstdio> 3 #include <string> 4 #include <cstring> 5 #include <map> 6 #include <vector> 7 using namespace std; 8 const int maxn=100000+100; 9 int pos[maxn],se[maxn*2],d[2*maxn][20];10 int e[. 阅读全文
posted @ 2013-05-28 16:37 LJ_COME!!!!! 阅读(117) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示