- 博客(11)
- 收藏
- 关注
原创 Multiple of 17
题目大意:所给数n,去掉最后一位数a,并减去5*a所得的值是否能被17整除?Description Theorem: If you drop the last digit d of an integer n (n10), subtract 5d from the remaining integer, then the difference is a multiple of 17 if
2012-02-23 18:51:08
639
原创 ZJNU 1614 Three good friends
题目大意:找出使F、Q、J三点连通的最少所需步数。。。DescriptionFF,JJ and QQ are three good friends. But their house are very far away form each others.Their want
2011-08-11 20:11:42
552
原创 ZJNU 1006 骑士游历
Description设有一个n*m的棋盘(2马走的规则为: 1.马走日字 2.马只能向右走 即如下图所示: 任务:当N,M 给出之后,同时给出马起始的位置和终点的位置,试找出从起点到终点的所有路径的数目. 例如:(N=10,M=10),(1,5
2011-08-11 17:27:14
869
原创 ZJNU 1743 多少个1
Description一开始有n个0,编号1到n,接下来有m个操作,操作1:输入一个编号i( 0 < i <= n )把第i个数变为1,原来为0输出Yes,否则No;操作2:输入一个编号j( 0 < j <= n )把第j个数变为0,原来为1输出Yes,否则No;操作
2011-08-11 16:30:51
421
原创 POJ 1731 Orders
题目大意:输入一个字符串,输出按字典序的所有排序。。。 DescriptionThe stores manager has sorted all kinds of goods in an alphabetical order of their labels. All
2011-08-10 11:12:57
567
原创 POJ 3370 Halloween treats
题目大意:输入n,m,以及m个数据,求可被n整除的一个组合。。。由于是任意组合~所以样例不一定是对的~~~ DescriptionEvery year there is the same problem at Halloween: Each neighbour is
2011-08-09 19:21:41
1106
原创 POJ 3132 Sum of Different Primes
题目大意:输入n,k,要求你找出k个和为n的不相同的素数,求可行的方案数。。。 DescriptionA positive integer may be expressed as a sum of different prime numbers (primes),
2011-08-09 14:24:16
1104
原创 POJ 3895 Cycles of Lanes
题目大意:找出定点最多的环,输出定点数~DescriptionEach of the M lanes of the Park of Polytechnic University of Bucharest connects two of the N crossroads o
2011-08-07 17:26:59
1011
原创 POJ 1101 Sticks
题目大意:输入N个数,表示以将若干个长度为L的木棒分为N个长度如下的小段,求最小的L。。。DescriptionGeorge took sticks of the same length and cut them randomly until all parts beca
2011-08-07 14:02:29
2872
原创 POJ 1942 Paths on a Grid
本来以为是一套高中的数学题,以为找出公式就ok了,结果。。排列还超时。。。另外。。。就是排列要用到double。。。。DescriptionImagine you are attending your math lesson at school. Once again, yo
2011-08-06 15:45:07
475
原创 POJ 3175 Finding Bovine Roots
题目大意:输入一个L,接下来是一个L位的整数,代表一个数N的前L位小数,当然,排除完全平方数,求N。。。之前用int取整数部分居然超时了。。。。。改用floor——16MS 过了。。。差距真大。。。 DescriptionThe cows are trying
2011-08-06 15:29:35
836
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人