<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[dexicuo5991的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/dexicuo5991</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; dexicuo5991]]></copyright><item><title><![CDATA[hihocoder #1185 : 连通性·三 tarjan]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880385</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880385</guid><author>dexicuo5991</author><pubDate>Wed, 26 Oct 2016 08:59:00 +0800</pubDate><description><![CDATA[#1185 : 连通性·三




时间限制:10000ms
单点时限:1000ms
内存限制:256MB



描述
暑假到了!!小Hi和小Ho为了体验生活，来到了住在大草原的约翰家。今天一大早，约翰因为有事要出去，就拜托小Hi和小Ho忙帮放牧。
约翰家一共有N个草场，每个草场有容量为W[i]的牧草，N个草场之间有M条单向的路径。
小Hi和小Ho需要将牛...]]></description><category></category></item><item><title><![CDATA[Intel Code Challenge Final Round (Div. 1 + Div. 2, Combined) C. Ray Tracing]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880383</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880383</guid><author>dexicuo5991</author><pubDate>Sun, 09 Oct 2016 23:18:00 +0800</pubDate><description><![CDATA[C. Ray Tracing





There areksensors located in the rectangular room of sizen × mmeters. Thei-th sensor is located at point(xi, yi). All sensors are located at distinct points str...]]></description><category></category></item><item><title><![CDATA[Intel Code Challenge Final Round (Div. 1 + Div. 2, Combined) D. Dense Subsequence（贪心）]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880381</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880381</guid><author>dexicuo5991</author><pubDate>Sun, 09 Oct 2016 13:33:00 +0800</pubDate><description><![CDATA[D. Dense Subsequence


You are given a strings, consisting of lowercase English letters, and the integerm.
One should choose some symbols from the given string so that any contiguous subs...]]></description><category></category></item><item><title><![CDATA[CodeForces - 580D Kefa and Dishes]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880379</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880379</guid><author>dexicuo5991</author><pubDate>Sat, 08 Oct 2016 12:42:00 +0800</pubDate><description><![CDATA[D. Kefa and Dishes

time limit per test
2 seconds

memory limit per test
256 megabytes

input
standard input

output
standard output


When Kefa came to the restaurant ...]]></description><category></category></item><item><title><![CDATA[CodeForces 723E One-Way Reform]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880377</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880377</guid><author>dexicuo5991</author><pubDate>Fri, 07 Oct 2016 17:02:00 +0800</pubDate><description><![CDATA[One-Way Reform
Description

There arencities andmtwo-way roads in Berland, each road connects two cities. It is known that there is no more than one road connecting each pair of citie...]]></description><category></category></item><item><title><![CDATA[Codeforces Round #375 (Div. 2) C. Polycarp at the Radio]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880375</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880375</guid><author>dexicuo5991</author><pubDate>Mon, 03 Oct 2016 23:03:00 +0800</pubDate><description><![CDATA[C. Polycarp at the Radio

time limit per test
2 seconds

memory limit per test
256 megabytes

input
standard input

output
standard output


Polycarp is a music editor at the rad...]]></description><category></category></item><item><title><![CDATA[Codeforces Round #375 (Div. 2) D.Lakes in Berland (dfs + 贪心)]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880388</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880388</guid><author>dexicuo5991</author><pubDate>Mon, 03 Oct 2016 23:00:00 +0800</pubDate><description><![CDATA[D. Lakes in Berland

time limit per test
2 seconds

memory limit per test
256 megabytes

input
standard input

output
standard output


The map of Berland is a rectangle ...]]></description><category></category></item><item><title><![CDATA[hdu 5898 odd-even number (数位dp)]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880373</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880373</guid><author>dexicuo5991</author><pubDate>Tue, 20 Sep 2016 17:01:00 +0800</pubDate><description><![CDATA[odd-even number
Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 454Accepted Submission(s): 245
Problem Description
For a number,if t...]]></description><category></category></item><item><title><![CDATA[Codeforces Round #365 (Div. 2) D. Mishka and Interesting sum (树状数组 + 离线查询)]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880386</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880386</guid><author>dexicuo5991</author><pubDate>Sat, 13 Aug 2016 10:20:00 +0800</pubDate><description><![CDATA[D. Mishka and Interesting sum


Little Mishka enjoys programming. Since her birthday has just passed, her friends decided to present her with array of non-negative integersa1, a2, ..., ano...]]></description><category></category></item><item><title><![CDATA[hdu 3333 Turing Tree(树状数组 + 离线查询)]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880384</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880384</guid><author>dexicuo5991</author><pubDate>Sat, 13 Aug 2016 10:09:00 +0800</pubDate><description><![CDATA[Turing Tree

Description

After inventing Turing Tree, 3xian always felt boring when solving problems about intervals, because Turing Tree could easily have the solution. As well, wily 3xian ...]]></description><category></category></item><item><title><![CDATA[hdu 5831 Rikka with Parenthesis II]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880382</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880382</guid><author>dexicuo5991</author><pubDate>Sat, 13 Aug 2016 09:53:00 +0800</pubDate><description><![CDATA[Rikka with Parenthesis II

Problem Description
As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is one of them:C...]]></description><category></category></item><item><title><![CDATA[hdu 5821 Ball (贪心)]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880380</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880380</guid><author>dexicuo5991</author><pubDate>Sat, 13 Aug 2016 09:47:00 +0800</pubDate><description><![CDATA[Ball

Description

ZZX has a sequence of boxes numbered1,2,...,n. Each box can contain at most one ball.You are given the initial configuration of the balls. For1 \leq i \leq n, if thei-t...]]></description><category></category></item><item><title><![CDATA[LightOJ 1274 Beating the Dataset]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880371</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880371</guid><author>dexicuo5991</author><pubDate>Sun, 07 Aug 2016 17:04:00 +0800</pubDate><description><![CDATA[题意是一个人做ACM题，这道题的数据的字节数和提问数已经给出，答案只有YES或NO。那个人做不来这道题，只能蒙，一开始一定蒙YES，数据会告诉你蒙对了没有，之后蒙的都是之前的正确答案，求蒙错的数据组数的期望数量。
因为字节数和提问数已经给出，所以立方程组可以算出来YES和NO的个数，设为X，Y。题目可以抽象为某个01串全排列该位置与前一个位置不同或者第一位为0的数量期望。
每个1贡献...]]></description><category></category></item><item><title><![CDATA[LightOJ 1248 Dice (III)]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880378</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880378</guid><author>dexicuo5991</author><pubDate>Sun, 07 Aug 2016 16:43:00 +0800</pubDate><description><![CDATA[题意是给出一个有n面的色子，求要看见所有面所投掷的期望次数。
设F(i)为看见i面的期望值。
F(i) = F(i - 1) * ((i - 1) / n) + 1 + F(i) * ((n - (i - 1)) / n)。
解得F(i) = F(i - 1) + (n / (i - 1))。

#include &lt;bits/stdc++.h&gt;
using nam...]]></description><category></category></item><item><title><![CDATA[LightOJ 1284 Lights inside 3D Grid]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880376</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880376</guid><author>dexicuo5991</author><pubDate>Sun, 07 Aug 2016 16:17:00 +0800</pubDate><description><![CDATA[题意是给出一个由边长为1的立方体组成的长方体，每个小立方体中有一盏灯，每次操作随机选择两个立方体，以这两个立方体作为对角线顶点确定一个长方体，长方体中所有块的灯自己取反，就是亮着的关上，暗着的打开，求这样操作k次以后亮着的灯数的期望值。
设F(i)为操作i次以后对某灯奇数次取反的概率，G(i)为偶数次，奇数次取反以后灯是亮着的，贡献的期望值显然是1，所以求出F(k)就可以了。
设p为...]]></description><category></category></item><item><title><![CDATA[hdu 5806 NanoApe Loves Sequence Ⅱ (尺取法)]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880374</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880374</guid><author>dexicuo5991</author><pubDate>Sun, 07 Aug 2016 10:54:00 +0800</pubDate><description><![CDATA[NanoApe Loves Sequence Ⅱ
Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 262144/131072 K (Java/Others)Total Submission(s): 500Accepted Submission(s): 242
Problem Description
NanoAp...]]></description><category></category></item><item><title><![CDATA[hdu 5795 A Simple Nim (sg函数)]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880372</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880372</guid><author>dexicuo5991</author><pubDate>Thu, 04 Aug 2016 17:46:00 +0800</pubDate><description><![CDATA[A Simple Nim
Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 33Accepted Submission(s): 18
Problem Description
Two players take turns...]]></description><category></category></item><item><title><![CDATA[hdu 5787 K-wolf Number (数位dp)]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880369</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880369</guid><author>dexicuo5991</author><pubDate>Thu, 04 Aug 2016 10:08:00 +0800</pubDate><description><![CDATA[K-wolf Number
Time Limit: 6000/3000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 737Accepted Submission(s): 265
Problem Description
Alice thinks an int...]]></description><category></category></item><item><title><![CDATA[hdu 5792 World is Exploding(离散化 + 树状数组 + 容斥)]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880323</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880323</guid><author>dexicuo5991</author><pubDate>Wed, 03 Aug 2016 15:12:00 +0800</pubDate><description><![CDATA[World is Exploding
Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 540Accepted Submission(s): 249
Problem Description
Given a sequen...]]></description><category></category></item><item><title><![CDATA[hdu 5791 Two]]></title><link>https://blog.csdn.net/dexicuo5991/article/details/101880322</link><guid>https://blog.csdn.net/dexicuo5991/article/details/101880322</guid><author>dexicuo5991</author><pubDate>Tue, 02 Aug 2016 17:23:00 +0800</pubDate><description><![CDATA[Two
Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 21Accepted Submission(s): 10
Problem Description
Alice gets two sequences A and ...]]></description><category></category></item></channel></rss>