<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[fouzhe的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/fouzhe</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; fouzhe]]></copyright><item><title><![CDATA[libevet]]></title><link>https://blog.csdn.net/fouzhe/article/details/84714941</link><guid>https://blog.csdn.net/fouzhe/article/details/84714941</guid><author>fouzhe</author><pubDate>Sun, 02 Dec 2018 15:13:29 +0800</pubDate><description><![CDATA[/*
  A trivial static http webserver using Libevent's evhttp.

  This is not the best code in the world, and it does some fairly stupid stuff
  that you would never want to do in a production webserve...]]></description><category></category></item><item><title><![CDATA[codeforces 677D. Vanya and Treasure(dp+bfs,黑科技)]]></title><link>https://blog.csdn.net/fouzhe/article/details/79665577</link><guid>https://blog.csdn.net/fouzhe/article/details/79665577</guid><author>fouzhe</author><pubDate>Fri, 23 Mar 2018 11:55:01 +0800</pubDate><description><![CDATA[题目链接

D. Vanya and Treasure 
time limit per test1.5 seconds 
memory limit per test256 megabytes 
inputstandard input 
outputstandard output 
Vanya is in the palace that can be represented as a grid n ...]]></description><category></category></item><item><title><![CDATA[bzoj 3083: 遥远的国度(树上换根操作，树剖+询问整个子树)]]></title><link>https://blog.csdn.net/fouzhe/article/details/79665556</link><guid>https://blog.csdn.net/fouzhe/article/details/79665556</guid><author>fouzhe</author><pubDate>Fri, 23 Mar 2018 11:53:31 +0800</pubDate><description><![CDATA[bzoj 3083

3083: 遥远的国度Time Limit: 10 Sec  Memory Limit: 1280 MB



Description

描述 
zcwwzdjn在追杀十分sb的zhx，而zhx逃入了一个遥远的国度。当zcwwzdjn准备进入遥远的国度继续追杀时，守护神RapiD阻拦了zcwwzdjn的去路，他需要zcwwzdjn完成任务后才能进入遥远的国度继续追杀。

问题...]]></description><category></category></item><item><title><![CDATA[codeforces 869E. The Untended Antiquity(二维树状数组，随机化)]]></title><link>https://blog.csdn.net/fouzhe/article/details/79665534</link><guid>https://blog.csdn.net/fouzhe/article/details/79665534</guid><author>fouzhe</author><pubDate>Fri, 23 Mar 2018 11:52:03 +0800</pubDate><description><![CDATA[codeforces 869E

E. The Untended Antiquity 
time limit per test2 seconds 
memory limit per test512 megabytes 
inputstandard input 
outputstandard output 
Adieu l’ami.

Koyomi is helping Oshino, an acq...]]></description><category></category></item><item><title><![CDATA[gym 100801G.Graph(拓扑排序，贪心构造)]]></title><link>https://blog.csdn.net/fouzhe/article/details/79665515</link><guid>https://blog.csdn.net/fouzhe/article/details/79665515</guid><author>fouzhe</author><pubDate>Fri, 23 Mar 2018 11:50:38 +0800</pubDate><description><![CDATA[gym 100801G

题意：

给出 nnn 个点 mmm 条边的 DAGDAGDAG，要求最多加 kkk 条有向边(不能形成环)，使得可能的字典序最小的拓扑序列最大。输出最终最小的拓扑序列，以及加边数，加的边(1≤n≤105,0≤m≤1051≤n≤105,0≤m≤1051 \leq n \leq 10^5,0 \leq m \leq 10^5)

题解：

用两个优先队列 minQ,maxQ...]]></description><category></category></item><item><title><![CDATA[hdu 5534 Partial Tree(dp+降唯)]]></title><link>https://blog.csdn.net/fouzhe/article/details/78512703</link><guid>https://blog.csdn.net/fouzhe/article/details/78512703</guid><author>fouzhe</author><pubDate>Sun, 12 Nov 2017 16:36:56 +0800</pubDate><description><![CDATA[题目链接Partial TreeTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) 
Total Submission(s): 1577    Accepted Submission(s): 789Problem Description 
In mathematics, and m]]></description><category></category></item><item><title><![CDATA[Codeforces Round #294 (Div. 2) E. A and B and Lecture Rooms(lca+思维,树上寻找与给定两个点距离相等的点的个数)]]></title><link>https://blog.csdn.net/fouzhe/article/details/78512695</link><guid>https://blog.csdn.net/fouzhe/article/details/78512695</guid><author>fouzhe</author><pubDate>Sun, 12 Nov 2017 16:35:55 +0800</pubDate><description><![CDATA[E. A and B and Lecture Rooms 
time limit per test 
2 seconds 
memory limit per test 
256 megabytes 
input 
standard input 
output 
standard output 
A and B are preparing themselves for programming cont]]></description><category></category></item><item><title><![CDATA[51nod 1821 最优集合(想法+贪心+并查集)]]></title><link>https://blog.csdn.net/fouzhe/article/details/62290777</link><guid>https://blog.csdn.net/fouzhe/article/details/62290777</guid><author>fouzhe</author><pubDate>Thu, 16 Mar 2017 00:17:13 +0800</pubDate><description><![CDATA[1821 最优集合

基准时间限制：1 秒 空间限制：131072 KB 分值: 40 难度：4级算法题




 收藏


 关注




一个集合S的优美值定义为：最大的x，满足对于任意i∈[1,x]，都存在一个S的子集S'，使得S'中元素之和为i。
给定n个集合，对于每一次询问，指定一个集合S1和一个集合S2，以及一个数k，要求选择一个S2的子集S3(|S3|]]></description><category></category></item><item><title><![CDATA[codeforces 733 F. Drivers Dissatisfaction(最小生成树+lca+倍增去环)]]></title><link>https://blog.csdn.net/fouzhe/article/details/62037261</link><guid>https://blog.csdn.net/fouzhe/article/details/62037261</guid><author>fouzhe</author><pubDate>Tue, 14 Mar 2017 12:46:13 +0800</pubDate><description><![CDATA[ 

题目链接

F. Drivers Dissatisfaction

time limit per test

4 seconds

memory limit per test

256 megabytes

input

standard input

output

standard output

In one kingdom there are n cities and m two-w...]]></description><category></category></item><item><title><![CDATA[codeforces 580 E. Kefa and Watch(hash+线段树)]]></title><link>https://blog.csdn.net/fouzhe/article/details/61005009</link><guid>https://blog.csdn.net/fouzhe/article/details/61005009</guid><author>fouzhe</author><pubDate>Fri, 10 Mar 2017 00:00:23 +0800</pubDate><description><![CDATA[E. Kefa and Watch


time limit per test
1.5 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



One day Kefa the parrot was walking dow]]></description><category></category></item><item><title><![CDATA[Yandex.Algorithm 2011 Round 1(STL!)]]></title><link>https://blog.csdn.net/fouzhe/article/details/59765644</link><guid>https://blog.csdn.net/fouzhe/article/details/59765644</guid><author>fouzhe</author><pubDate>Thu, 02 Mar 2017 23:50:09 +0800</pubDate><description><![CDATA[D. Sum of Medians


time limit per test
3 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



In one well-known algorithm of finding th]]></description><category></category></item><item><title><![CDATA[gym 101124 Problem E. Dance Party(概率)]]></title><link>https://blog.csdn.net/fouzhe/article/details/59746236</link><guid>https://blog.csdn.net/fouzhe/article/details/59746236</guid><author>fouzhe</author><pubDate>Thu, 02 Mar 2017 23:13:57 +0800</pubDate><description><![CDATA[Problem E. Dance Party
Time limit: 0.5 secondsMemory limit: 256 megabytes
Dance parties, whether formal balls or less formal events, usuallyhave dress codes for the guests. The code may be more or l]]></description><category></category></item><item><title><![CDATA[AtCoder Grand Contest 010 B(差分)]]></title><link>https://blog.csdn.net/fouzhe/article/details/59198651</link><guid>https://blog.csdn.net/fouzhe/article/details/59198651</guid><author>fouzhe</author><pubDate>Wed, 01 Mar 2017 23:36:50 +0800</pubDate><description><![CDATA[题目链接


B - Boxes



Time limit : 2sec / Memory limit : 256MB


Score : 500 points

Problem Statement
There are N boxes
 arranged in a circle. The i-th box contains Ai stones.
Determine ]]></description><category></category></item><item><title><![CDATA[Codeforces Round #352 (Div. 1) B. Robin Hood(想法+二分,好题)]]></title><link>https://blog.csdn.net/fouzhe/article/details/59118284</link><guid>https://blog.csdn.net/fouzhe/article/details/59118284</guid><author>fouzhe</author><pubDate>Wed, 01 Mar 2017 19:10:33 +0800</pubDate><description><![CDATA[题目链接

B. Robin Hood


time limit per test
1 second


memory limit per test
256 megabytes


input
standard input


output
standard output



We all know the impressive story of Ro]]></description><category></category></item><item><title><![CDATA[codeforces 717 G. Underfail(费用流,好题)]]></title><link>https://blog.csdn.net/fouzhe/article/details/58715042</link><guid>https://blog.csdn.net/fouzhe/article/details/58715042</guid><author>fouzhe</author><pubDate>Tue, 28 Feb 2017 23:34:49 +0800</pubDate><description><![CDATA[题目链接

G. Underfail


time limit per test
1 second


memory limit per test
256 megabytes


input
standard input


output
standard output



You have recently fallen through a hole]]></description><category></category></item><item><title><![CDATA[Codeforces Round #268 (Div. 1) C. Hack it!(二分+尺取／构造,好题)]]></title><link>https://blog.csdn.net/fouzhe/article/details/58603730</link><guid>https://blog.csdn.net/fouzhe/article/details/58603730</guid><author>fouzhe</author><pubDate>Tue, 28 Feb 2017 16:38:44 +0800</pubDate><description><![CDATA[C. Hack it!


time limit per test
1 second


memory limit per test
256 megabytes


input
standard input


output
standard output



Little X has met the following problem recently.]]></description><category></category></item><item><title><![CDATA[codeforces  717 D. Dexterina’s Lab(矩阵快速幂加速dp,好题)]]></title><link>https://blog.csdn.net/fouzhe/article/details/58585504</link><guid>https://blog.csdn.net/fouzhe/article/details/58585504</guid><author>fouzhe</author><pubDate>Tue, 28 Feb 2017 09:28:25 +0800</pubDate><description><![CDATA[题目链接

D. Dexterina’s Lab


time limit per test
1 second


memory limit per test
256 megabytes


input
standard input


output
standard output



Dexterina and Womandark have been]]></description><category></category></item><item><title><![CDATA[Codeforces Round #322 (Div. 2) F. Zublicanes and Mumocrates(树形dp,好题)]]></title><link>https://blog.csdn.net/fouzhe/article/details/58237400</link><guid>https://blog.csdn.net/fouzhe/article/details/58237400</guid><author>fouzhe</author><pubDate>Mon, 27 Feb 2017 20:27:36 +0800</pubDate><description><![CDATA[题目链接

F. Zublicanes and Mumocrates


time limit per test
3 seconds


memory limit per test
512 megabytes


input
standard input


output
standard output



It's election time in]]></description><category></category></item><item><title><![CDATA[Kattis-Curious Cupid(莫队)]]></title><link>https://blog.csdn.net/fouzhe/article/details/57420384</link><guid>https://blog.csdn.net/fouzhe/article/details/57420384</guid><author>fouzhe</author><pubDate>Sun, 26 Feb 2017 17:46:41 +0800</pubDate><description><![CDATA[题目链接


Curious Cupid



There are K different
 languages in the world. Each person speaks one and only one language. There are exactly N single
 men and N single
 women.
Cupid, the god of l]]></description><category></category></item><item><title><![CDATA[Codeforces Round #400 (Div. 1 + Div. 2, combined) D. The Door Problem(二分染色?/2-sat,好题)]]></title><link>https://blog.csdn.net/fouzhe/article/details/56868574</link><guid>https://blog.csdn.net/fouzhe/article/details/56868574</guid><author>fouzhe</author><pubDate>Fri, 24 Feb 2017 20:57:46 +0800</pubDate><description><![CDATA[题目链接

D. The Door Problem


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



Moriarty has trapped n people i]]></description><category></category></item></channel></rss>