自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(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 591

原创 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 522

原创 ZJNU 1006 骑士游历

Description设有一个n*m的棋盘(2马走的规则为: 1.马走日字 2.马只能向右走 即如下图所示:  任务:当N,M 给出之后,同时给出马起始的位置和终点的位置,试找出从起点到终点的所有路径的数目. 例如:(N=10,M=10),(1,5

2011-08-11 17:27:14 790

原创 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 388

原创 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 538

原创 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 1072

原创 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 1065

原创 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 976

原创 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 2840 1

原创 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 442

原创 POJ 3175 Finding Bovine Roots

题目大意:输入一个L,接下来是一个L位的整数,代表一个数N的前L位小数,当然,排除完全平方数,求N。。。之前用int取整数部分居然超时了。。。。。改用floor——16MS 过了。。。差距真大。。。 DescriptionThe cows are trying

2011-08-06 15:29:35 805

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除