<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[HandsomeHow的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/HandsomeHow</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; HandsomeHow]]></copyright><item><title><![CDATA[博客搬迁]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/64498279</link><guid>https://blog.csdn.net/HandsomeHow/article/details/64498279</guid><author>HandsomeHow</author><pubDate>Tue, 21 Mar 2017 20:13:45 +0800</pubDate><description><![CDATA[博客将搬迁至handsomehow.com]]></description><category></category></item><item><title><![CDATA[Codeforces 754 D Fedor and coupons]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/54171993</link><guid>https://blog.csdn.net/HandsomeHow/article/details/54171993</guid><author>HandsomeHow</author><pubDate>Sat, 07 Jan 2017 11:32:27 +0800</pubDate><description><![CDATA[D. Fedor and coupons


time limit per test
4 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



All our characters have hobbies. The s]]></description><category></category></item><item><title><![CDATA[codeforces 743 D. Chloe and pleasant prizes(DFS)]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/53669645</link><guid>https://blog.csdn.net/HandsomeHow/article/details/53669645</guid><author>HandsomeHow</author><pubDate>Thu, 15 Dec 2016 14:04:13 +0800</pubDate><description><![CDATA[D. Chloe and pleasant prizes


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



Generous sponsors of the olymp]]></description><category></category></item><item><title><![CDATA[codeforces 743 C. Vladik and fractions(构造)]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/53669605</link><guid>https://blog.csdn.net/HandsomeHow/article/details/53669605</guid><author>HandsomeHow</author><pubDate>Thu, 15 Dec 2016 14:00:03 +0800</pubDate><description><![CDATA[C. Vladik and fractions


time limit per test
1 second


memory limit per test
256 megabytes


input
standard input


output
standard output



Vladik and Chloe decided to determin]]></description><category></category></item><item><title><![CDATA[codeforces 743 B Chloe and the sequence(递归)]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/53669589</link><guid>https://blog.csdn.net/HandsomeHow/article/details/53669589</guid><author>HandsomeHow</author><pubDate>Thu, 15 Dec 2016 13:56:35 +0800</pubDate><description><![CDATA[B. Chloe and the sequence


time limit per test
1 second


memory limit per test
256 megabytes


input
standard input


output
standard output



Chloe, the same as Vladik, is a co]]></description><category></category></item><item><title><![CDATA[codeforces 743 A Vladik and flights(水题)]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/53669569</link><guid>https://blog.csdn.net/HandsomeHow/article/details/53669569</guid><author>HandsomeHow</author><pubDate>Thu, 15 Dec 2016 13:54:41 +0800</pubDate><description><![CDATA[A. Vladik and flights


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



Vladik is a competitive programmer. T]]></description><category></category></item><item><title><![CDATA[HDU5880 Family View（AC自动机）]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52780448</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52780448</guid><author>HandsomeHow</author><pubDate>Mon, 10 Oct 2016 18:30:36 +0800</pubDate><description><![CDATA[链接：http://acm.hdu.edu.cn/showproblem.php?pid=5880
题意：给定N个串，一个长文本，把那N个串在长文本里出现的部分用×代替。
思路：把N个串放到AC自动机上然后在结点标记上串长，接着把长文本放到自动机上去匹配，匹配到了就替换掉。
至于替换的方法，不用暴力的去修改，只要同类似括号匹配的方式打上标记就好了。要注意2种情况的处理
1：   N个串种有]]></description><category></category></item><item><title><![CDATA[HDU 5573 Binary Tree 构造]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52739675</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52739675</guid><author>HandsomeHow</author><pubDate>Wed, 05 Oct 2016 17:28:16 +0800</pubDate><description><![CDATA[链接：http://acm.hdu.edu.cn/showproblem.php?pid=5573
思路：首先，我们要知道，用1,2,4,...2^(n-1)能构造出所有的1~2^n-1的数，所以我们一直走最左边的路就好了,当然,根据奇偶性要在最后一步调整下.
然后我们在第i层选正负怎么办呢,我们就假设是正的,那么我们就要用1,2...2^(i-1)构造出n-2^i,如果构造不出来，那就取负的]]></description><category></category></item><item><title><![CDATA[HDU5556 Land of Farms 最大独立集]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52739622</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52739622</guid><author>HandsomeHow</author><pubDate>Wed, 05 Oct 2016 17:22:25 +0800</pubDate><description><![CDATA[链接：http://acm.hdu.edu.cn/showproblem.php?pid=5556
思路:直接枚举祖先的选不选,然后把选上的附近的删掉,然后剩下的点按做最大独立集.
祖先那边选了x个,剩下的没被删掉的点共n个,把x+y是奇数的放一边,偶数的放另一边,匹配数是m,那么结果就是x+n-m。


代码：
#include 
#include 
#include 
#inclu]]></description><category></category></item><item><title><![CDATA[codeforces 709 D Recover the String (构造)]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52451708</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52451708</guid><author>HandsomeHow</author><pubDate>Tue, 06 Sep 2016 17:09:53 +0800</pubDate><description><![CDATA[D. Recover the String


time limit per test
1 second


memory limit per test
256 megabytes


input
standard input


output
standard output



For each string s consisting of charac]]></description><category></category></item><item><title><![CDATA[CodeForces 369 div2 E. ZS and The Birthday Paradox 数论]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52372064</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52372064</guid><author>HandsomeHow</author><pubDate>Tue, 30 Aug 2016 18:52:14 +0800</pubDate><description><![CDATA[E. ZS and The Birthday Paradox


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



ZS the Coder has recently fo]]></description><category></category></item><item><title><![CDATA[CodeForces 369 div2 D Directed Roads 图论 数论]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52372058</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52372058</guid><author>HandsomeHow</author><pubDate>Tue, 30 Aug 2016 18:50:59 +0800</pubDate><description><![CDATA[D. Directed Roads


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



ZS the Coder and Chris the Baboon has exp]]></description><category></category></item><item><title><![CDATA[CodeForces 369 div2  C Coloring Trees DP]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52358230</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52358230</guid><author>HandsomeHow</author><pubDate>Tue, 30 Aug 2016 00:47:51 +0800</pubDate><description><![CDATA[C. Coloring Trees


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



ZS the Coder and Chris the Baboon has arr]]></description><category></category></item><item><title><![CDATA[CodeForces 367E Working routine 十字链表]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52195948</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52195948</guid><author>HandsomeHow</author><pubDate>Fri, 12 Aug 2016 22:45:10 +0800</pubDate><description><![CDATA[E. Working routine


time limit per test
2.5 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



Vasiliy finally got to work, where the]]></description><category></category></item><item><title><![CDATA[CodeForces 367D Vasiliy's Multiset Trie树]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52195919</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52195919</guid><author>HandsomeHow</author><pubDate>Fri, 12 Aug 2016 22:36:52 +0800</pubDate><description><![CDATA[D. Vasiliy's Multiset


time limit per test
4 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



Author has gone out of the stories ab]]></description><category></category></item><item><title><![CDATA[CodeForces 367C Hard problem DP]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52195898</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52195898</guid><author>HandsomeHow</author><pubDate>Fri, 12 Aug 2016 22:33:40 +0800</pubDate><description><![CDATA[C. Hard problem


time limit per test
1 second


memory limit per test
256 megabytes


input
standard input


output
standard output



Vasiliy is fond of solving different tasks.]]></description><category></category></item><item><title><![CDATA[HDU5794 A Simple Chess]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52187475</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52187475</guid><author>HandsomeHow</author><pubDate>Thu, 11 Aug 2016 23:14:59 +0800</pubDate><description><![CDATA[A Simple Chess
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 2015    Accepted Submission(s): 545



Problem Description

There is a n]]></description><category></category></item><item><title><![CDATA[HDU5831 Rikka with Parenthesis II]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52185572</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52185572</guid><author>HandsomeHow</author><pubDate>Thu, 11 Aug 2016 19:07:37 +0800</pubDate><description><![CDATA[Rikka with Parenthesis II
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 60    Accepted Submission(s): 48



Problem Description

As w]]></description><category></category></item><item><title><![CDATA[HDU5826 physics]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52185512</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52185512</guid><author>HandsomeHow</author><pubDate>Thu, 11 Aug 2016 18:58:05 +0800</pubDate><description><![CDATA[physics
Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 54    Accepted Submission(s): 36



Problem Description

There are n balls on a]]></description><category></category></item><item><title><![CDATA[POJ087 A Plug for UNIX (最大流)]]></title><link>https://blog.csdn.net/HandsomeHow/article/details/52078537</link><guid>https://blog.csdn.net/HandsomeHow/article/details/52078537</guid><author>HandsomeHow</author><pubDate>Sun, 31 Jul 2016 14:55:01 +0800</pubDate><description><![CDATA[A Plug for UNIX




Time Limit: 1000MS
 
Memory Limit: 65536K


Total Submissions: 15962
 
Accepted: 5464





Description

You are in charge of setting up the press room for the i]]></description><category></category></item></channel></rss>