![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++编程学习题解归纳
sprinting_victor
Don't worry too much about the ambiguous future; just make the effort for the explicit present.
展开
-
hdu1166题解
原题请进入hdu网站搜索,题号为1166 原题思路为线段树,利用其动态统计特点 程序如下 #include; #include; using namespace std; int a[50000],b[140000],n,i,j; char c[15]; void intial(int root,int left,int right) { int mid; if (left原创 2017-05-08 21:32:34 · 335 阅读 · 0 评论 -
bzoj1008题解
bzoj1008越狱=总-不越狱 n个监狱,每个监狱有m种可能性(m种宗教) 总:有n^m种可能性不越狱的话第一个监狱有m种选择,后面n个监狱,每个都有m-1种选择不越狱:有m*((m-1)^n)此外,需要写快速幂注mod前有减法再加一个mod ...原创 2018-04-02 21:25:22 · 225 阅读 · 0 评论