[BZOJ4103][Thu Summer Camp 2015]异或运算

[BZOJ4103][Thu Summer Camp 2015]异或运算试题描述给定长度为n的数列X={x1,x2,...,xn}和长度为m的数列Y={y1,y2,...,ym},令矩阵A中第i行第j列的值Aij=xi xor  yj,每次询问给定矩形区域i∈[u,d],j∈[l,r],找
2次阅读

Lerp和SmoothDamp比较

 Lerp更像是线性衰减,而SmoothDamp像是弧形衰减,两者都是由快而慢其中SmoothDamp多用于相机跟随。但如果其他类型的插值,我个人觉的其实都差不多 SmoothDamp:transform.position = Vector3.SmoothDamp(transfo
6次阅读

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

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

BZOJ4533 [BeiJing2014 WinterCamp] 数据

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

BZOJ4423 [AMPPZ2013]Bytehattan

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

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
17次阅读

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

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

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
19次阅读

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
10次阅读

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次阅读