摘要: Problem DescriptionGiven two matrices A and B of size n×n, find the product of them.bobo hates big integers. So you are only asked to find the result ... 阅读全文
posted @ 2015-08-17 22:41 pb2016 阅读(320) 评论(0) 推荐(1) 编辑
摘要: DescriptionThe citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral poster... 阅读全文
posted @ 2015-08-17 20:53 pb2016 阅读(183) 评论(0) 推荐(1) 编辑
摘要: Problem DescriptionTina Town is a friendly place. People there care about each other.Tina has a ball called zball. Zball is magic. It grows larger eve... 阅读全文
posted @ 2015-08-16 11:09 pb2016 阅读(370) 评论(0) 推荐(1) 编辑
摘要: DescriptionThe cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superio... 阅读全文
posted @ 2015-08-15 15:47 pb2016 阅读(218) 评论(0) 推荐(1) 编辑
摘要: Problem DescriptionAll you know Goldbach conjecture.That is to say, Every even integer greater than 2 can be expressed as the sum of two primes. Today... 阅读全文
posted @ 2015-08-15 15:29 pb2016 阅读(191) 评论(0) 推荐(1) 编辑
摘要: DescriptionThere are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts even include maps of par... 阅读全文
posted @ 2015-08-15 11:06 pb2016 阅读(174) 评论(0) 推荐(1) 编辑
摘要: Problem DescriptionA simple problem Problem Description You have a multiple set,and now there are three kinds of operations:1 x : add number x to set2... 阅读全文
posted @ 2015-08-14 22:38 pb2016 阅读(189) 评论(0) 推荐(1) 编辑
摘要: Problem DescriptionThere arenblack balls andmwhite balls in the big box.Now, DZY starts to randomly pick out the balls one by one. It forms a sequence... 阅读全文
posted @ 2015-08-13 19:54 pb2016 阅读(290) 评论(0) 推荐(1) 编辑
摘要: Description给出了一个序列,你需要处理如下两种询问。"Cabc"表示给[a, b]区间中的值全部增加c(-10000≤c≤10000)。"Qab"询问[a, b]区间中所有值的和。Input第一行包含两个整数N,Q。1≤N,Q≤100000.第二行包含n个整数,表示初始的序列A(-1000... 阅读全文
posted @ 2015-08-11 16:17 pb2016 阅读(293) 评论(0) 推荐(2) 编辑
摘要: DescriptionThe inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i aj.For a given sequence of ... 阅读全文
posted @ 2015-08-11 16:12 pb2016 阅读(203) 评论(0) 推荐(1) 编辑