摘要: 树上的点分治。首先为了避免超时预处理逆元,对于x( 2 #include 3 #include 4 #pragma comment(linker,"/STACK:102400000,102400000") 5 6 using namespace std; 7 typedef __i... 阅读全文
posted @ 2015-08-20 22:07 astoninfer 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题蛮水的,细致考虑一下即可。我写的代码既不是针对本题最优的也不是通用性最好的,仅仅是自己的方法。acm.hdu.edu.cn/showproblem.php?pid=1085 1 #include 2 #include 3 4 using namespace std; 5 6 int a, ... 阅读全文
posted @ 2015-08-20 02:06 astoninfer 阅读(132) 评论(0) 推荐(0) 编辑