[BZOJ4104][Thu Summer Camp 2015]解密运算

[BZOJ4104][Thu Summer Camp 2015]解密运算试题描述对于一个长度为N的字符串,我们在字符串的末尾添加一个特殊的字符"."。之后将字符串视为一个环,从位置1,2,3,...,N+1为起点读出N+1个字符,就能得到N+1个字符串。比如对于字符串“ABCAAA”,我们可以得到这
5次阅读

BZOJ4533 [BeiJing2014 WinterCamp] 数据

本文版权归ljh2000和博客园共有,欢迎转载,但须保留此声明,并给出原文链接,谢谢合作。  本文作者:ljh2000作者博客:http://www.cnblogs.com/ljh2000-jump/转载请注明出处,侵权必究,保留最终解释权!  Descrip
13次阅读

BZOJ4423 [AMPPZ2013]Bytehattan

本文版权归ljh2000和博客园共有,欢迎转载,但须保留此声明,并给出原文链接,谢谢合作。  本文作者:ljh2000作者博客:http://www.cnblogs.com/ljh2000-jump/转载请注明出处,侵权必究,保留最终解释权! Description比特
9次阅读

B. Arpa's weak amphitheater and Mehrdad's valuable Hoses

B. Arpa's weak amphitheater and Mehrdad's valuable Hosestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard
12次阅读

【堆优化Dijkstra】BZOJ4152- [AMPPZ2014]The Captain

【题目大意】给定平面上的n个点,定义(x1,y1)到(x2,y2)的费用为min(|x1-x2|,|y1-y2|),求从1号点走到n号点的最小费用。【思路】按照某维坐标排序,相邻两个点在这一维度上的差值最小,所以两两连边,长度为这一维度上的差值(不用考虑另外一维度的,就算另外一维度的更小,在连另外一
9次阅读

2016 Al-Baath University Training Camp Contest-1 J

DescriptionX is fighting beasts in the forest, in order to have a better chance to survive he's gonna buy upgrades for his weapon. Weapon upgrade shop
16次阅读

2016 Al-Baath University Training Camp Contest-1 I

DescriptionIt is raining again! Youssef really forgot that there is a chance of rain in March, so he didn't fix the roof of his house. Youssef's roof
8次阅读

2016 Al-Baath University Training Camp Contest-1 H

 DescriptionYou've possibly heard about 'The Endless River'. However, if not, we are introducing it to you. The Endless River is a river in Cambr
7次阅读

2016 Al-Baath University Training Camp Contest-1 G

DescriptionThe forces of evil are about to disappear since our hero is now on top on the tower of evil, and all what is left is the most evil, most da
6次阅读

2016 Al-Baath University Training Camp Contest-1 F

DescriptionZaid has two words, a of length between 4 and 1000 and b of length 4 exactly. The word a is 'good' if it has
9次阅读