<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[MasterG]]></title><description><![CDATA[因为我的梦想是创造像、刀剑神域、那样的世界。]]></description><link>https://blog.csdn.net/qq_32944513</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_32944513]]></copyright><item><title><![CDATA[C++学习的一些代码]]></title><link>https://blog.csdn.net/qq_32944513/article/details/88373030</link><guid>https://blog.csdn.net/qq_32944513/article/details/88373030</guid><author>qq_32944513</author><pubDate>Sat, 09 Mar 2019 23:11:15 +0800</pubDate><description><![CDATA[#include&lt;iostream&gt;
#include&lt;stdio.h&gt;
#include&lt;algorithm&gt;
using namespace std;
/*
权限：public &gt; protected &gt; private;
对于 ？ 继承：父类中&gt;= ? 权限的会继承到 子类中的 ？权限中.
*/
class Person{
public...]]></description><category></category></item><item><title><![CDATA[java中的向下向上转型]]></title><link>https://blog.csdn.net/qq_32944513/article/details/88035255</link><guid>https://blog.csdn.net/qq_32944513/article/details/88035255</guid><author>qq_32944513</author><pubDate>Thu, 28 Feb 2019 16:51:47 +0800</pubDate><description><![CDATA[//参考博客 http://blog.sina.com.cn/s/blog_81547cad01015o4t.html
package com.lyh;

/*
 * 继承后的变量问题，重写方法， 与向上 向下 转型 问题 
 * */

class Human {
	public int id = 10;

	public void eat() {
		System.out.println(&quot;...]]></description><category></category></item><item><title><![CDATA[The 15th Zhejiang Provincial Collegiate Programming Contest 总结]]></title><link>https://blog.csdn.net/qq_32944513/article/details/83550969</link><guid>https://blog.csdn.net/qq_32944513/article/details/83550969</guid><author>qq_32944513</author><pubDate>Tue, 30 Oct 2018 23:21:05 +0800</pubDate><description><![CDATA[刷了一下也没有时间补题，看了别人的题解，就总结一下：

A，签到

B,签到

D:没有dp出来待补（不知道哪里错了)

E:待补

F:只有log个除数，预处理前缀和，从小到大排序ai，处理logp(ai)。


#include&amp;lt;iostream&amp;gt;
#include&amp;lt;algorithm&amp;gt;
#include&amp;lt;stdio.h&amp;gt;
#include&amp;lt;strin...]]></description><category></category></item><item><title><![CDATA[The 18th Zhejiang University Programming Contest 总结]]></title><link>https://blog.csdn.net/qq_32944513/article/details/83550307</link><guid>https://blog.csdn.net/qq_32944513/article/details/83550307</guid><author>qq_32944513</author><pubDate>Tue, 30 Oct 2018 22:59:41 +0800</pubDate><description><![CDATA[刷了一下也没有时间补题，看了别人的题解，就总结一下：

A:水题

C:指针，链表。

F:

题意:

有个容量为c的背包，两类物品，其权值分别为k1、k2，第一种物品有n个，第二种有m个，每个物体都有自己的体积。当放进一个物体进入背包时，其获得的价值的对应的权值k乘上放入当前物体后剩余的容量。现在问，能够获得的最大价值是多少？

分析：显然对于同一类物品肯定是从小到大放最好，如果V要放，那比V...]]></description><category></category></item><item><title><![CDATA[ZOJ Monthly, January 2018 总结。]]></title><link>https://blog.csdn.net/qq_32944513/article/details/83477869</link><guid>https://blog.csdn.net/qq_32944513/article/details/83477869</guid><author>qq_32944513</author><pubDate>Sun, 28 Oct 2018 22:48:05 +0800</pubDate><description><![CDATA[刷了一下也没有时间补题，看了别人的题解，就总结一下：

题解：https://www.cnblogs.com/clrs97/p/8215277.html

            http://www.cnblogs.com/iamamori/archive/2018/10/25/9852869.html

A:水题。

 

B:

给定n字符串，每次询问查询两个字符串的一个公共后缀，使得这个公...]]></description><category></category></item><item><title><![CDATA[ACM-ICPC 2018 徐州赛区网络预赛 G. Trace]]></title><link>https://blog.csdn.net/qq_32944513/article/details/82594310</link><guid>https://blog.csdn.net/qq_32944513/article/details/82594310</guid><author>qq_32944513</author><pubDate>Mon, 10 Sep 2018 18:59:32 +0800</pubDate><description><![CDATA[题目：https://nanti.jisuanke.com/t/31459

解法：很多解法吧，分享一个巧妙的解法，按x排序后，用单调栈：


/*
最后的图肯定是 下降的 梯子形状
而且没有一个块 会被完全挡住
所以 一个块在x方向上 挡住它的 只有x小于它 的块
所以 保证此解法的正确性
*/
#include&amp;lt;iostream&amp;gt;
#include&amp;lt;algorithm&amp;gt;...]]></description><category></category></item><item><title><![CDATA[2018 Multi-University Training Contest 10 - Problem E. TeaTree (树上 dsu  // 线段树合并)]]></title><link>https://blog.csdn.net/qq_32944513/article/details/82018522</link><guid>https://blog.csdn.net/qq_32944513/article/details/82018522</guid><author>qq_32944513</author><pubDate>Fri, 24 Aug 2018 15:12:50 +0800</pubDate><description><![CDATA[题目：http://acm.hdu.edu.cn/showproblem.php?pid=6430

题意：一棵树上每个节点权值为v[i]，每个节点的heard值是：以它为LCA的两个节点的GCD的最大值，要求输出每个节点的heard值

题解：小于 100000 的数最多只有一百多个约数. 建出所有点的约数线段树, 然后线段树合并, 重复的单点就可以对答案产生贡献. 当然有省内存的做法, DSU...]]></description><category></category></item><item><title><![CDATA[牛客网暑期ACM多校训练营（第八场）H Playing games]]></title><link>https://blog.csdn.net/qq_32944513/article/details/81987940</link><guid>https://blog.csdn.net/qq_32944513/article/details/81987940</guid><author>qq_32944513</author><pubDate>Thu, 23 Aug 2018 21:07:16 +0800</pubDate><description><![CDATA[题目：https://www.nowcoder.com/acm/contest/146/H

题意：共有n堆石子，第 i 堆有a[ i ]个，从中选k堆进行游戏，然后进行nim游戏，尽可能选多选，使得先手比败。

题解：大佬的题解 

自己的总结：从线性基可以知道 如果一个集合能异或出 sum，那么最多选线性基的维数个。

                        使得最多个异或成0，转化为...]]></description><category></category></item><item><title><![CDATA[计蒜客  A String Game (后缀自动机 + sg)]]></title><link>https://blog.csdn.net/qq_32944513/article/details/81987057</link><guid>https://blog.csdn.net/qq_32944513/article/details/81987057</guid><author>qq_32944513</author><pubDate>Thu, 23 Aug 2018 20:09:43 +0800</pubDate><description><![CDATA[题目：https://nanti.jisuanke.com/t/24852

题意：给一个字符串 T， 和n个T的字串。两个人轮流操作，每次可以从n个字符串中选择一个串s[i]，然后在s[i]的最后添上一个字符，满足得到的新串仍然是t的子串。不能操作者输。

题解：后缀自动机 + sg.( 知道后缀自动机后确实感觉很裸的一道题)；

，，，，，，，，，，，，，，，，，，，，，，，，，，


#in...]]></description><category></category></item><item><title><![CDATA[牛客网暑期ACM多校训练营（第十场）	Rikka with Prefix Sum]]></title><link>https://blog.csdn.net/qq_32944513/article/details/81877416</link><guid>https://blog.csdn.net/qq_32944513/article/details/81877416</guid><author>qq_32944513</author><pubDate>Mon, 20 Aug 2018 20:38:05 +0800</pubDate><description><![CDATA[题目：https://www.nowcoder.com/acm/contest/148/D

题意：

给一个数组a，一开始的值全为0。一共有三个操作: 
1. 对区间[L,R]的每个数都加上w。 
2. 将数组a用其前缀和数组代替。 
3. 将询问区间[L,R]的区间和。

题解：大佬


/**
参考大佬题解：http://www.cnblogs.com/tetew/p/9504595.htm...]]></description><category></category></item><item><title><![CDATA[Wannafly挑战赛20 - 挑选队友]]></title><link>https://blog.csdn.net/qq_32944513/article/details/81813593</link><guid>https://blog.csdn.net/qq_32944513/article/details/81813593</guid><author>qq_32944513</author><pubDate>Sat, 18 Aug 2018 22:21:28 +0800</pubDate><description><![CDATA[链接：https://www.nowcoder.com/acm/contest/133/D
来源：牛客网
Applese打开了m个QQ群，向群友们发出了组队的邀请。作为网红选手，Applese得到了n位选手的反馈，每位选手只会在一个群给Applese反馈
现在，Applese要挑选其中的k名选手组队比赛，为了维持和各个群的良好关系，每个群中都应有至少一名选手成为Applese的队友（数据保证每个群...]]></description><category></category></item><item><title><![CDATA[2018 Multi-University Training Contest 5 Glad You Came]]></title><link>https://blog.csdn.net/qq_32944513/article/details/81461428</link><guid>https://blog.csdn.net/qq_32944513/article/details/81461428</guid><author>qq_32944513</author><pubDate>Mon, 06 Aug 2018 21:19:47 +0800</pubDate><description><![CDATA[题目：http://acm.hdu.edu.cn/showproblem.php?pid=6356

用线段树维护一个最小最大值搞一下可以过：


#include&amp;lt;iostream&amp;gt;
#include&amp;lt;stdio.h&amp;gt;
#include&amp;lt;string.h&amp;gt;
#include&amp;lt;algorithm&amp;gt;
#include&amp;lt;vector&amp;gt;
#de...]]></description><category></category></item><item><title><![CDATA[2018 Multi-University Training Contest 4 Problem B. Harvest of Apples]]></title><link>https://blog.csdn.net/qq_32944513/article/details/81368744</link><guid>https://blog.csdn.net/qq_32944513/article/details/81368744</guid><author>qq_32944513</author><pubDate>Thu, 02 Aug 2018 22:17:28 +0800</pubDate><description><![CDATA[题意：

求T组 C(n,0) + C(n,1) +...C(n,m) . ( 1&amp;lt;=T,n,m&amp;lt;=1e5,)

题解：



代码：


#include&amp;lt;iostream&amp;gt;
#include&amp;lt;stdio.h&amp;gt;
#include&amp;lt;algorithm&amp;gt;
#include&amp;lt;math.h&amp;gt;
#define ls (o&amp;lt;&amp;lt;1)
#d...]]></description><category></category></item><item><title><![CDATA[2018 Multi-University Training Contest 2 Naive Operations]]></title><link>https://blog.csdn.net/qq_32944513/article/details/81316529</link><guid>https://blog.csdn.net/qq_32944513/article/details/81316529</guid><author>qq_32944513</author><pubDate>Tue, 31 Jul 2018 16:57:00 +0800</pubDate><description><![CDATA[ 

题意：

In a galaxy far, far away, there are two integer sequence a and b of length n.
b is a static permutation of 1 to n. Initially a is filled with zeroes.
There are two kind of operations:
1. add ...]]></description><category></category></item><item><title><![CDATA[2018 Multi-University Training Contest 1 	RMQ Similar Sequence]]></title><link>https://blog.csdn.net/qq_32944513/article/details/81305054</link><guid>https://blog.csdn.net/qq_32944513/article/details/81305054</guid><author>qq_32944513</author><pubDate>Tue, 31 Jul 2018 16:02:55 +0800</pubDate><description><![CDATA[题意：序列A， 定义RMQ(A,l,r) 为A序列 l到r中最大值的最小位置i，RMQ相似为 对于A,B两个序列，

使得任意l ,r ， RMQ（A,l,r）= RMQ（B,l,r）现在B序列元素的值均在[0,1]随机。如果B与A RMQ相似，

则B的重量为B元素的和，否则为0。求B的期望重量。

题解：

笛卡尔树性质

树中的元素满足二叉搜索树性质，要求按照中序遍历得到的序列为原数组序列
...]]></description><category></category></item><item><title><![CDATA[2018 Multi-University Training Contest 3 Problem C. Dynamic Graph Matching]]></title><link>https://blog.csdn.net/qq_32944513/article/details/81292222</link><guid>https://blog.csdn.net/qq_32944513/article/details/81292222</guid><author>qq_32944513</author><pubDate>Mon, 30 Jul 2018 21:11:17 +0800</pubDate><description><![CDATA[题意：

给定一个 n 个点的无向图，m 次加边或者删边操作。 在每次操作后统计有多少个匹配包含 k = 1,2,..., n 2 条边。

ans：


/**
* f[i][S]为 第i次操作 集合S里的点 都要匹配的 方案数。
* + 一条边时 可以选择 要这条边进行匹配 f[i][S] += f[i-1][S^(1&amp;lt;&amp;lt;u)^(1&amp;lt;&amp;lt;v)],(选择这条边 剩下的点有多...]]></description><category></category></item><item><title><![CDATA[牛客网暑期ACM多校训练营（第二场）J	farm]]></title><link>https://blog.csdn.net/qq_32944513/article/details/81186719</link><guid>https://blog.csdn.net/qq_32944513/article/details/81186719</guid><author>qq_32944513</author><pubDate>Tue, 24 Jul 2018 16:15:30 +0800</pubDate><description><![CDATA[题意：给一个矩阵每个格子里有一个数，现在给T个 子矩阵 和一个 val 值，把子矩阵里不是 val 值的 格子抹去，问最多抹去多少个格子。

题解：

1:先考虑一个特殊的情况：矩形中的数和T次操作放的数都为0或1。 对于这种情况，我们只需要用矩阵前缀和统计一下每个格子被多少个0覆盖，被多少个1覆盖。 如果一个格子的数为0且被放入了至少一个1或这个格子的数位1且被放入了至少一个0则就会对答案产生贡...]]></description><category></category></item><item><title><![CDATA[牛客网暑期ACM多校训练营（第二场）H  travel]]></title><link>https://blog.csdn.net/qq_32944513/article/details/81186461</link><guid>https://blog.csdn.net/qq_32944513/article/details/81186461</guid><author>qq_32944513</author><pubDate>Tue, 24 Jul 2018 16:05:09 +0800</pubDate><description><![CDATA[看大神的思路很清晰 https://blog.csdn.net/WuBaizhe/article/details/81153513

重点就是这个 sum[k][i][j]sum[k][i][j]：前kk个儿子所构成的子树林包含jj条不相交路径和ii条以根为端点的不相交链的最大值 
则根据以第kk个儿子为根的子树贡献路径的情况，sum[k]sum[k]的值可以由sum[k−1]sum[k−1]转移...]]></description><category></category></item><item><title><![CDATA[2018CodeM资格赛B 可乐]]></title><link>https://blog.csdn.net/qq_32944513/article/details/80497713</link><guid>https://blog.csdn.net/qq_32944513/article/details/80497713</guid><author>qq_32944513</author><pubDate>Fri, 20 Jul 2018 15:37:19 +0800</pubDate><description><![CDATA[题目描述：

小美和小团最近沉迷可乐。可供TA们选择的可乐共有k种，比如可口可乐、零度可乐等等，每种可乐会带给小美和小团不同的快乐程度。TA们一共要买n瓶可乐，每种可乐可以买无限多瓶，小美会随机挑选其中的m瓶喝，剩下的n-m瓶小团喝。请问应该如何购买可乐，使得小美和小团得到的快乐程度的和的期望值最大？

现在请求出购买可乐的方案。

输入描述：

第一行三个整数n，m，k分别表示要买的可乐数、小美...]]></description><category></category></item><item><title><![CDATA[牛客网暑期ACM多校训练营（第一场）J Different Integers]]></title><link>https://blog.csdn.net/qq_32944513/article/details/81131600</link><guid>https://blog.csdn.net/qq_32944513/article/details/81131600</guid><author>qq_32944513</author><pubDate>Fri, 20 Jul 2018 14:45:43 +0800</pubDate><description><![CDATA[题目:

链接：https://www.nowcoder.com/acm/contest/139/J
来源：牛客网
Given a sequence of integers a1, a2, ..., an and q pairs of integers (l1, r1), (l2, r2), ..., (lq, rq), find count(l1, r1), count(l2, r2), ......]]></description><category></category></item></channel></rss>