<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[这是一个博客]]></title><description><![CDATA[想到什么写什么]]></description><link>https://blog.csdn.net/qq_41333002</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_41333002]]></copyright><item><title><![CDATA[HDU - 4336 Card Collector]]></title><link>https://blog.csdn.net/qq_41333002/article/details/88828127</link><guid>https://blog.csdn.net/qq_41333002/article/details/88828127</guid><author>qq_41333002</author><pubDate>Tue, 26 Mar 2019 19:44:05 +0800</pubDate><description><![CDATA[In your childhood, do you crazy for collecting the beautiful cards in the snacks? They said that, for example, if you collect all the 108 people in the famous novel Water Margin, you will win an amazi...]]></description><category></category></item><item><title><![CDATA[ZOJ - 3640 Help Me Escape]]></title><link>https://blog.csdn.net/qq_41333002/article/details/88780574</link><guid>https://blog.csdn.net/qq_41333002/article/details/88780574</guid><author>qq_41333002</author><pubDate>Sun, 24 Mar 2019 19:57:54 +0800</pubDate><description><![CDATA[Background

If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto thee shall be his desire, and thou shalt rule over him.
And Cain talked...]]></description><category></category></item><item><title><![CDATA[POJ - 3071 Football]]></title><link>https://blog.csdn.net/qq_41333002/article/details/88768093</link><guid>https://blog.csdn.net/qq_41333002/article/details/88768093</guid><author>qq_41333002</author><pubDate>Sat, 23 Mar 2019 21:02:21 +0800</pubDate><description><![CDATA[Consider a single-elimination football tournament involving 2nteams, denoted 1, 2, …, 2n. In each round of the tournament, all teams still in the tournament are placed in a list in order of increasin...]]></description><category></category></item><item><title><![CDATA[CodeForces - 148D Bag of mice]]></title><link>https://blog.csdn.net/qq_41333002/article/details/88767106</link><guid>https://blog.csdn.net/qq_41333002/article/details/88767106</guid><author>qq_41333002</author><pubDate>Sat, 23 Mar 2019 19:56:55 +0800</pubDate><description><![CDATA[The dragon and the princess are arguing about what to do on the New Year's Eve. The dragon suggests flying to the mountains to watch fairies dancing in the moonlight, while the princess thinks they sh...]]></description><category></category></item><item><title><![CDATA[HDU - 3853 LOOPS]]></title><link>https://blog.csdn.net/qq_41333002/article/details/88762473</link><guid>https://blog.csdn.net/qq_41333002/article/details/88762473</guid><author>qq_41333002</author><pubDate>Sat, 23 Mar 2019 15:59:37 +0800</pubDate><description><![CDATA[Akemi Homura is a Mahou Shoujo (Puella Magi/Magical Girl).
Homura wants to help her friend Madoka save the world. But because of the plot of the Boss Incubator, she is trapped in a labyrinth called L...]]></description><category></category></item><item><title><![CDATA[HDU - 4405  Aeroplane chess]]></title><link>https://blog.csdn.net/qq_41333002/article/details/88691050</link><guid>https://blog.csdn.net/qq_41333002/article/details/88691050</guid><author>qq_41333002</author><pubDate>Wed, 20 Mar 2019 16:01:36 +0800</pubDate><description><![CDATA[Hzz loves aeroplane chess very much. The chess map contains N+1 grids labeled from 0 to N. Hzz starts at grid 0. For each step he throws a dice(a dice have six faces with equal probability to face up ...]]></description><category></category></item><item><title><![CDATA[ZOJ - 3329 One Person Game]]></title><link>https://blog.csdn.net/qq_41333002/article/details/88671867</link><guid>https://blog.csdn.net/qq_41333002/article/details/88671867</guid><author>qq_41333002</author><pubDate>Tue, 19 Mar 2019 20:23:59 +0800</pubDate><description><![CDATA[There is a very simple and interesting one-person game. You have 3 dice, namelyDie1,Die2andDie3.Die1hasK1faces.Die2hasK2faces.Die3hasK3faces. All the dice are fair dice, so the probabi...]]></description><category></category></item><item><title><![CDATA[POJ - 2096 Collecting Bugs]]></title><link>https://blog.csdn.net/qq_41333002/article/details/88648761</link><guid>https://blog.csdn.net/qq_41333002/article/details/88648761</guid><author>qq_41333002</author><pubDate>Tue, 19 Mar 2019 19:02:17 +0800</pubDate><description><![CDATA[Ivan is fond of collecting. Unlike other people who collect post stamps, coins or other material stuff, he collects software bugs. When Ivan gets a new program, he classifies all possible bugs into n ...]]></description><category></category></item><item><title><![CDATA[CodeForces - 978D Almost Arithmetic Progression]]></title><link>https://blog.csdn.net/qq_41333002/article/details/86578185</link><guid>https://blog.csdn.net/qq_41333002/article/details/86578185</guid><author>qq_41333002</author><pubDate>Mon, 21 Jan 2019 17:17:37 +0800</pubDate><description><![CDATA[Polycarp likes arithmetic progressions. A sequence [a1,a2,…,an][a1,a2,…,an] is called an arithmetic progression if for each ii (1≤i&amp;lt;n1≤i&amp;lt;n) the value ai+1−aiai+1−ai is the same. For example, the...]]></description><category></category></item><item><title><![CDATA[UVA - 10820 Send a Table]]></title><link>https://blog.csdn.net/qq_41333002/article/details/86509278</link><guid>https://blog.csdn.net/qq_41333002/article/details/86509278</guid><author>qq_41333002</author><pubDate>Wed, 16 Jan 2019 15:58:18 +0800</pubDate><description><![CDATA[题目链接

给出一个数字n 找出有多少对两个数都不大于n的互质数对。

当x&amp;gt;y时 与x互质的数即为x的欧拉函数值，反之亦然，再加上相等的1，1这一对即可求出答案。

这题总的来说就是板子题，但是第一次敲欧拉函数板子还敲错了……有点丢人。

AC代码：


#include &amp;lt;iostream&amp;gt;
#include &amp;lt;cstdio&amp;gt;
#include &amp;lt;cstri...]]></description><category></category></item><item><title><![CDATA[UVA - 12716 GCD XOR]]></title><link>https://blog.csdn.net/qq_41333002/article/details/86427611</link><guid>https://blog.csdn.net/qq_41333002/article/details/86427611</guid><author>qq_41333002</author><pubDate>Sun, 13 Jan 2019 17:52:33 +0800</pubDate><description><![CDATA[题目链接

进行一个类似素数打表的对数打表 统计出有多少符合的对数。重要的是证明c=a-b，建议百度一下我也讲不好。

AC代码：


#include &amp;lt;iostream&amp;gt;
#include &amp;lt;cstdio&amp;gt;
#include &amp;lt;cstring&amp;gt;
using namespace std;
const int maxn=3e7+10;
typedef  long...]]></description><category></category></item><item><title><![CDATA[UVA - 10791 Minimum Sum LCM]]></title><link>https://blog.csdn.net/qq_41333002/article/details/86425355</link><guid>https://blog.csdn.net/qq_41333002/article/details/86425355</guid><author>qq_41333002</author><pubDate>Sun, 13 Jan 2019 17:09:50 +0800</pubDate><description><![CDATA[给你一个数N，让你求出若干个数使得这若干个数的最小公倍数为N,并且这若干个数的和最小。

利用唯一分解定理，将n分解成n = p1 ^ k1 * p2 ^ k2 * ... * pm ^ km，然后求解sum = ∑(1≤i≤m)pi ^ ki就是我们要的答案，虽然我是只知道这样能保证最小公倍数是n但是不知道为什么这样是最小……（看大佬的题解 大概是保证各个因子是互素，否则可以让他们各除以最大公约...]]></description><category></category></item><item><title><![CDATA[UVA - 12169 Disgruntled Judge]]></title><link>https://blog.csdn.net/qq_41333002/article/details/86422677</link><guid>https://blog.csdn.net/qq_41333002/article/details/86422677</guid><author>qq_41333002</author><pubDate>Sun, 13 Jan 2019 16:14:28 +0800</pubDate><description><![CDATA[题目链接

随机选取x1,a,b，根据公式xi=(a*xi-1+b)%10001得到一个长度为2*n的序列，奇数项作为输入，求偶数项，若有多种，随机输出一组答案。

按照x2和x3的公式联立，可以获得一个关于x1和x3的同余方程。然后利用拓展欧几里得枚举a解出一个b0，然后找出可行的b。

虽然说会说但是我完全是懵逼的哈哈哈哈哈哈哈。

AC代码：


#include &amp;lt;iostream&amp;...]]></description><category></category></item><item><title><![CDATA[UVA - 11582 Colossal Fibonacci Numbers!]]></title><link>https://blog.csdn.net/qq_41333002/article/details/86367785</link><guid>https://blog.csdn.net/qq_41333002/article/details/86367785</guid><author>qq_41333002</author><pubDate>Sat, 12 Jan 2019 17:49:25 +0800</pubDate><description><![CDATA[设f(x)是菲波那切数列中第x个数，求f(a^b)mod n的值。

首先我们要知道一个结论：斐波那契数列对n取余，它的余数列是有周期性的。这样对于一个很大的数，我们只需找出它在周期中处于第几个位置，然后找出相应的余数就行了。这样就把问题化为找斐波那契数列的余数列，和找出余数列的周期。

根据加法取余定理，我们只要在算出f[i]后直接f[i]=f[i] mod n即为对应的余数。周期只要判断第几个...]]></description><category></category></item><item><title><![CDATA[custoj 233-很有趣的一道题]]></title><link>https://blog.csdn.net/qq_41333002/article/details/83828159</link><guid>https://blog.csdn.net/qq_41333002/article/details/83828159</guid><author>qq_41333002</author><pubDate>Wed, 07 Nov 2018 17:49:32 +0800</pubDate><description><![CDATA[描述

 

lzp喜欢搞笑数，所有搞笑的数都非常地搞笑，比如23333、233333、2333333。

所以说，一个搞笑数的每位上只能出现2或3

现给定一个正整数n，求一个搞笑数x，要求x是n的整数倍。

输入

 

多组数据每行一个正整数n，n&amp;lt;=100000

输出

 

对于每组数据，输出一个搞笑数x，x的位数不能超过500若不存在这样的搞笑数，输出Unhappy

输入样例...]]></description><category></category></item><item><title><![CDATA[HDU - 1180 诡异的楼梯]]></title><link>https://blog.csdn.net/qq_41333002/article/details/83714481</link><guid>https://blog.csdn.net/qq_41333002/article/details/83714481</guid><author>qq_41333002</author><pubDate>Sun, 04 Nov 2018 11:45:21 +0800</pubDate><description><![CDATA[Hogwarts正式开学以后,Harry发现在Hogwarts里,某些楼梯并不是静止不动的，相反,他们每隔一分钟就变动一次方向. 
比如下面的例子里,一开始楼梯在竖直方向,一分钟以后它移动到了水平方向,再过一分钟它又回到了竖直方向.Harry发现对他来说很难找到能使得他最快到达目的地的路线,这时Ron(Harry最好的朋友)告诉Harry正好有一个魔法道具可以帮助他寻找这样的路线,而那个魔法道具上...]]></description><category></category></item><item><title><![CDATA[HDU - 1175 连连看]]></title><link>https://blog.csdn.net/qq_41333002/article/details/83713397</link><guid>https://blog.csdn.net/qq_41333002/article/details/83713397</guid><author>qq_41333002</author><pubDate>Sun, 04 Nov 2018 09:39:04 +0800</pubDate><description><![CDATA[“连连看”相信很多人都玩过。没玩过也没关系，下面我给大家介绍一下游戏规则：在一个棋盘中，放了很多的棋子。如果某两个相同的棋子，可以通过一条线连起来（这条线不能经过其它棋子），而且线的转折次数不超过两次，那么这两个棋子就可以在棋盘上消去。不好意思，由于我以前没有玩过连连看，咨询了同学的意见，连线不能从外面绕过去的，但事实上这是错的。现在已经酿成大祸，就只能将错就错了，连线不能从外围绕过。 
玩家鼠标...]]></description><category></category></item><item><title><![CDATA[饥荒：进阶·放火烧树]]></title><link>https://blog.csdn.net/qq_41333002/article/details/83685586</link><guid>https://blog.csdn.net/qq_41333002/article/details/83685586</guid><author>qq_41333002</author><pubDate>Sat, 03 Nov 2018 11:43:26 +0800</pubDate><description><![CDATA[描述

 

饥荒：放火烧树是一个奥妙重重的游戏。TanYz是饥荒的老司机，为了得到木炭点火，不得不放火烧树。

老司机TanYz为了生存，还要节约资源。他知道一次只能将一棵树木点燃。而且，当一棵树被点燃后，与这棵树距离不超过k的所有树木都会被点燃。

自从TanYz把这个奥妙重重的游戏安利给萌新zhuyutian后，他觉得放火烧山这种粗活太没意思。于是他把这个任务交给了zhuyutian。于是，...]]></description><category></category></item><item><title><![CDATA[HDU - 1827 Summer Holiday]]></title><link>https://blog.csdn.net/qq_41333002/article/details/83626713</link><guid>https://blog.csdn.net/qq_41333002/article/details/83626713</guid><author>qq_41333002</author><pubDate>Thu, 01 Nov 2018 20:54:19 +0800</pubDate><description><![CDATA[To see a World in a Grain of Sand
And a Heaven in a Wild Flower,
Hold Infinity in the palm of your hand
And Eternity in an hour.
                  —— William Blake
听说lcy帮大家预定了新马泰7日游，Wiskey真是高兴的夜不能寐啊，他...]]></description><category></category></item><item><title><![CDATA[HDU - 6230  Palindrome]]></title><link>https://blog.csdn.net/qq_41333002/article/details/82888346</link><guid>https://blog.csdn.net/qq_41333002/article/details/82888346</guid><author>qq_41333002</author><pubDate>Fri, 28 Sep 2018 18:28:54 +0800</pubDate><description><![CDATA[Alice like strings, especially long strings. For each string, she has a special evaluation system to judge how elegant the string is. She defines that a string S[1..3n−2](n≥2)S[1..3n−2](n≥2) is one-an...]]></description><category></category></item></channel></rss>