I -数论,线性方程Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionThe Sky is Sprite. The Birds is Fly in the Sky. The Wind is Won...
分类:
编程语言 时间:
2015-08-17 19:03:49
阅读次数:
150
8.16补BC。HDU 5391Zball in Tina Town求(n-1)!%n。首先合数的话前面必然有它的因子。所以是0。质数我打表才发现是n-1。然而有一个著名的威尔逊定理(渣根本没听过。坑在于n=4时是2。没判就死了QAQ。 1 # include 2 # include 3 usi.....
分类:
其他好文 时间:
2015-08-16 15:01:51
阅读次数:
114
DescriptionNow you are asked to measure a dose of medicine with a balance and a number of weights. Certainly it is not always achievable. So you shoul...
分类:
其他好文 时间:
2015-08-13 11:31:14
阅读次数:
167
DescriptionWe give the following inductive definition of a “regular brackets” sequence:the empty sequence is a regular brackets sequence,ifsis a regul...
分类:
其他好文 时间:
2015-08-12 23:22:43
阅读次数:
155
Hrdv is interested in a string,especially the palindrome string.So he wants some palindrome string.A sequence of characters is a palindrome if it is t...
分类:
其他好文 时间:
2015-08-12 23:19:35
阅读次数:
111
DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 ....
分类:
其他好文 时间:
2015-08-12 23:08:12
阅读次数:
161
DescriptionA palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You are to write...
分类:
其他好文 时间:
2015-08-12 21:33:11
阅读次数:
113
Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located within the...
分类:
其他好文 时间:
2015-08-12 21:30:31
阅读次数:
106
DescriptionIn a few months the European Currency Union will become a reality. However, to join the club, the Maastricht criteria must be fulfilled, an...
分类:
其他好文 时间:
2015-08-12 19:02:54
阅读次数:
110