<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Mizersy的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Mizersy</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Mizersy]]></copyright><item><title><![CDATA[第13届景驰-埃森哲杯广东工业大学ACM程序设计大赛]]></title><link>https://blog.csdn.net/Mizersy/article/details/79680801</link><guid>https://blog.csdn.net/Mizersy/article/details/79680801</guid><author>Mizersy</author><pubDate>Sat, 24 Mar 2018 20:14:36 +0800</pubDate><description><![CDATA[A.跳台阶链接：https://www.nowcoder.com/acm/contest/90/A来源：牛客网有一个n级台阶的楼梯，小明一次可以向上跳1步，两步，甚至是n步，请问小明跳到n级台阶有多少种跳法？ 输入描述:第一行输入一个整数t，代表有t组样例:（ T&amp;lt;=30）接下来的t行，都用一个整数n，表示楼梯有n级台阶（ 1&amp;lt;=n&amp;lt;=30）输出描述:输出跳到第n级台阶有多少种跳...]]></description><category></category></item><item><title><![CDATA[poj2481 Cows（树状数组）]]></title><link>https://blog.csdn.net/Mizersy/article/details/79675356</link><guid>https://blog.csdn.net/Mizersy/article/details/79675356</guid><author>Mizersy</author><pubDate>Sat, 24 Mar 2018 10:26:01 +0800</pubDate><description><![CDATA[Farmer John's cows have discovered that the clover growing along the ridge of the hill (which we can think of as a one-dimensional number line) in his field is particularly good.        Farmer John ha...]]></description><category></category></item><item><title><![CDATA[树状数组 区间修改+区间查询]]></title><link>https://blog.csdn.net/Mizersy/article/details/79595571</link><guid>https://blog.csdn.net/Mizersy/article/details/79595571</guid><author>Mizersy</author><pubDate>Sat, 17 Mar 2018 20:51:49 +0800</pubDate><description><![CDATA[原文链接设原数组第ii位的值为aiai，di=ai−ai−1di=ai−ai−1，则有(这里认为a0=0a0=0)：ax=∑i=1xdiax=∑i=1xdi所以有：∑i=1xai=∑i=1x∑j=1idj=∑i=1x(x−i+1)di∑i=1xai=∑i=1x∑j=1idj=∑i=1x(x−i+1)di于是我们得到了：∑i=1xai=(x+1)∑i=1xdi−∑i=1xdi×i∑i=1xai=(x...]]></description><category></category></item><item><title><![CDATA[hdu1166敌兵布阵 （树状数组 单点修改+区间查询）]]></title><link>https://blog.csdn.net/Mizersy/article/details/79592474</link><guid>https://blog.csdn.net/Mizersy/article/details/79592474</guid><author>Mizersy</author><pubDate>Sat, 17 Mar 2018 15:25:27 +0800</pubDate><description><![CDATA[敌兵布阵Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 108424    Accepted Submission(s): 45554Problem DescriptionC国的死对头A国这段时间正在进行军事演习，所以C国间谍头子Derek...]]></description><category></category></item><item><title><![CDATA[hdu2544 最短路 spfa]]></title><link>https://blog.csdn.net/Mizersy/article/details/79451588</link><guid>https://blog.csdn.net/Mizersy/article/details/79451588</guid><author>Mizersy</author><pubDate>Mon, 05 Mar 2018 21:52:38 +0800</pubDate><description><![CDATA[最短路Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 77752    Accepted Submission(s): 33784Problem Description在每年的校赛里，所有进入决赛的同学都会获得一件很漂亮的t-shirt。但...]]></description><category></category></item><item><title><![CDATA[洛谷p1137 旅行计划 （拓扑排序）]]></title><link>https://blog.csdn.net/Mizersy/article/details/79435045</link><guid>https://blog.csdn.net/Mizersy/article/details/79435045</guid><author>Mizersy</author><pubDate>Sun, 04 Mar 2018 10:35:23 +0800</pubDate><description><![CDATA[题目描述小明要去一个国家旅游。这个国家有N个城市，编号为1～N，并且有M条道路连接着，小明准备从其中一个城市出发，并只往东走到城市i停止。所以他就需要选择最先到达的城市，并制定一条路线以城市i为终点，使得线路上除了第一个城市，每个城市都在路线前一个城市东面，并且满足这个前提下还希望游览的城市尽量多。现在，你只知道每一条道路所连接的两个城市的相对位置关系，但并不知道所有城市具体的位置。现在对于所有的...]]></description><category></category></item><item><title><![CDATA[hdu4970 Killing Monsters 树状数组 区间修改]]></title><link>https://blog.csdn.net/Mizersy/article/details/79432740</link><guid>https://blog.csdn.net/Mizersy/article/details/79432740</guid><author>Mizersy</author><pubDate>Sat, 03 Mar 2018 20:35:43 +0800</pubDate><description><![CDATA[Killing MonstersTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 2843    Accepted Submission(s): 1070Problem DescriptionKingdom Rush is a popul...]]></description><category></category></item><item><title><![CDATA[hdu5056 Boring count]]></title><link>https://blog.csdn.net/Mizersy/article/details/79430031</link><guid>https://blog.csdn.net/Mizersy/article/details/79430031</guid><author>Mizersy</author><pubDate>Sat, 03 Mar 2018 14:10:33 +0800</pubDate><description><![CDATA[Boring countTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1855    Accepted Submission(s): 674Problem DescriptionYou are given a string S consi...]]></description><category></category></item><item><title><![CDATA[hdu 1007最近点对]]></title><link>https://blog.csdn.net/Mizersy/article/details/79412718</link><guid>https://blog.csdn.net/Mizersy/article/details/79412718</guid><author>Mizersy</author><pubDate>Thu, 01 Mar 2018 15:07:29 +0800</pubDate><description><![CDATA[  Have you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encircled awarded.In the field of Cyberground, the position of each toy is...]]></description><category></category></item><item><title><![CDATA[poj2299 归并排序求逆序对]]></title><link>https://blog.csdn.net/Mizersy/article/details/79402330</link><guid>https://blog.csdn.net/Mizersy/article/details/79402330</guid><author>Mizersy</author><pubDate>Wed, 28 Feb 2018 16:30:34 +0800</pubDate><description><![CDATA[In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the sequence is sorted i...]]></description><category></category></item><item><title><![CDATA[A+B problem （压8位高精度加法模板）]]></title><link>https://blog.csdn.net/Mizersy/article/details/79397379</link><guid>https://blog.csdn.net/Mizersy/article/details/79397379</guid><author>Mizersy</author><pubDate>Wed, 28 Feb 2018 10:39:24 +0800</pubDate><description><![CDATA[I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. InputThe first line of the input contains an integer T(1&amp;lt;=T&amp;lt;=20) which means the numb...]]></description><category></category></item><item><title><![CDATA[POJ 3784 Running Median 动态求中位数 堆]]></title><link>https://blog.csdn.net/Mizersy/article/details/79390646</link><guid>https://blog.csdn.net/Mizersy/article/details/79390646</guid><author>Mizersy</author><pubDate>Tue, 27 Feb 2018 17:02:01 +0800</pubDate><description><![CDATA[转自点击打开链接For this problem, you will write a program that reads in a sequence of 32-bit signed integers. After each odd-indexed value is read, output the median (middle value) of the elements received s...]]></description><category></category></item><item><title><![CDATA[POJ3344 Snowflake Snow Snowflakes （hash）]]></title><link>https://blog.csdn.net/Mizersy/article/details/79389040</link><guid>https://blog.csdn.net/Mizersy/article/details/79389040</guid><author>Mizersy</author><pubDate>Tue, 27 Feb 2018 15:35:27 +0800</pubDate><description><![CDATA[You may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. Your program will read information about a collection of snowflakes, and ...]]></description><category></category></item><item><title><![CDATA[CodeForces 586D  Phillip and Trains （dfs）]]></title><link>https://blog.csdn.net/Mizersy/article/details/79381871</link><guid>https://blog.csdn.net/Mizersy/article/details/79381871</guid><author>Mizersy</author><pubDate>Mon, 26 Feb 2018 21:21:47 +0800</pubDate><description><![CDATA[D. Phillip and Trainstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe mobile application store has a new game called &quot;Subway Roller&quot;.The protago...]]></description><category></category></item><item><title><![CDATA[HDU2586 How far away ？(LCA求最近公共祖先)]]></title><link>https://blog.csdn.net/Mizersy/article/details/79179874</link><guid>https://blog.csdn.net/Mizersy/article/details/79179874</guid><author>Mizersy</author><pubDate>Sat, 27 Jan 2018 13:36:47 +0800</pubDate><description><![CDATA[How far away ？
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 19650    Accepted Submission(s): 7704



Problem Description

There are ]]></description><category></category></item><item><title><![CDATA[HDU1102 Constructing Roads(kruskal最小生成树)]]></title><link>https://blog.csdn.net/Mizersy/article/details/79175651</link><guid>https://blog.csdn.net/Mizersy/article/details/79175651</guid><author>Mizersy</author><pubDate>Fri, 26 Jan 2018 18:43:50 +0800</pubDate><description><![CDATA[Constructing Roads
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 25492    Accepted Submission(s): 9793



Problem Description

There ]]></description><category></category></item><item><title><![CDATA[HDU2196 树状dp 求树中节点之间的最长距离]]></title><link>https://blog.csdn.net/Mizersy/article/details/79139676</link><guid>https://blog.csdn.net/Mizersy/article/details/79139676</guid><author>Mizersy</author><pubDate>Tue, 23 Jan 2018 14:48:55 +0800</pubDate><description><![CDATA[题意：

给出一棵树，求离每个节点最远的点的距离





思路：

把无根树转化成有根树分析，



对于上面那棵树，要求距结点2的最长距离，那么，就需要知道以2为顶点的子树（蓝色圈起的部分，我们叫它Tree（2）），距顶点2的最远距离L1

还有知道2的父节点1为根节点的树Tree（1）-Tree(2)部分（即红色圈起部分），距离结点1的最长距离+dist(1,]]></description><category></category></item><item><title><![CDATA[hdu1520 数形dp入门]]></title><link>https://blog.csdn.net/Mizersy/article/details/79138513</link><guid>https://blog.csdn.net/Mizersy/article/details/79138513</guid><author>Mizersy</author><pubDate>Tue, 23 Jan 2018 13:16:31 +0800</pubDate><description><![CDATA[题意：在一个有根树上每个节点有一个权值，每相邻的父亲和孩子只能选择一个，问怎么选择总权值之和最大。

思路： 
树形dp的常规入门题：设dp[i][0]表示:当前这个点不选，dp[i][1]表示当前这个点选择的最优解。

转移方程：dp[cur][0]+=max(dp[son][1],dp[son][0]);//当前这个点不选，那他的孩子可选可不选，取 
最大的。 

dp[cur]]></description><category></category></item><item><title><![CDATA[POJ1664 放苹果（递归）]]></title><link>https://blog.csdn.net/Mizersy/article/details/78910088</link><guid>https://blog.csdn.net/Mizersy/article/details/78910088</guid><author>Mizersy</author><pubDate>Wed, 27 Dec 2017 11:14:44 +0800</pubDate><description><![CDATA[Description
把M个同样的苹果放在N个同样的盘子里，允许有的盘子空着不放，问共有多少种不同的分法？（用K表示）5，1，1和1，5，1 是同一种分法。
Input
第一行是测试数据的数目t（0 
Output
对输入的每组数据M和N，用一行输出相应的K。
Sample Input
1
7 3

Sample Output
8/*
   解题分析：
        设f(m]]></description><category></category></item><item><title><![CDATA[TOJ1398 Square（DFS）]]></title><link>https://blog.csdn.net/Mizersy/article/details/78905059</link><guid>https://blog.csdn.net/Mizersy/article/details/78905059</guid><author>Mizersy</author><pubDate>Tue, 26 Dec 2017 18:04:58 +0800</pubDate><description><![CDATA[Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square?
The first line of input contains N, the number of test cases. Each test case begins with an integer ]]></description><category></category></item></channel></rss>