码迷,mamicode.com
首页 >  
搜索关键字:nyoj 630 problem of    ( 39118个结果
Euler_problem_18 for python
如下所示 给出2个解法 def euler_problem_18_1():     """     this problem spend my half-day but noting to finished ,so bad     """     rows = '''     3     7 4     2 4 6     100 5 9 3     '''     ...
分类:编程语言   时间:2014-06-07 01:28:18    阅读次数:261
projecteuler---->problem=5----Smallest multiple n个数求最小公倍数
title: 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that is evenly divisible by all of the nu...
分类:其他好文   时间:2014-06-07 01:27:37    阅读次数:229
projecteuler---->problem=4----Largest palindrome product
title: Largest palindrome product Problem 4 A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 99. Find the l...
分类:其他好文   时间:2014-06-07 01:24:27    阅读次数:398
projecteuler---->problem=7----10001st prime
title: By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10 001st prime number? 翻译: 通过列出前6个质数,我们可知第6个质数是13。 那么第10001个质数是...
分类:其他好文   时间:2014-06-05 12:28:28    阅读次数:277
projecteuler---->problem=6----Sum square difference
title: The sum of the squares of the first ten natural numbers is, 12 + 22 + ... + 102 = 385 The square of the sum of the first ten natural numbers is, (1 + 2 + ... + 10)2 = 552 = 3025 Hence ...
分类:其他好文   时间:2014-06-05 12:03:29    阅读次数:243
杭电 1230 火星A+B
火星A+B Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 10279    Accepted Submission(s): 3402 Problem Description 读入两个不超过25位的火星正整数A和B,计算A...
分类:其他好文   时间:2014-06-05 11:13:45    阅读次数:241
2014百度之星初赛(第二场)——JZP Set
2014百度之星初赛(第二场)——JZP Set Problem Description 一个{1, ..., n}的子集S被称为JZP集,当且仅当对于任意S中的两个数x,y,若(x+y)/2为整数,那么(x+y)/2也属于S。 例如,n=3,S={1,3}不是JZP集,因为(1+3)/2=2不属于S。但是{1,2,3}的其他子集都属于S,所以n=3时有7个JZP集 给定n,求...
分类:其他好文   时间:2014-06-05 09:59:14    阅读次数:161
HDU 3972 1 M possible(思维)
1 M possible Time Limit: 15000/5000 MS (Java/Others)    Memory Limit: 2048/1024 K (Java/Others) Total Submission(s): 1031    Accepted Submission(s): 343 Problem Description There are 3*N+2...
分类:其他好文   时间:2014-06-05 07:50:19    阅读次数:259
2014百度之星初赛(第二场)——Chess
2014百度之星初赛(第二场)——Chess Problem Description   小度和小良最近又迷上了下棋。棋盘一共有N行M列,我们可以把左上角的格子定为(1,1),右下角的格子定为(N,M)。在他们的规则中,“王”在棋盘上的走法遵循十字路线。也就是说,如果“王”当前在(x,y)点,小度在下一步可以移动到(x+1, y), (x-1, y), (x, y+1), (x, ...
分类:其他好文   时间:2014-06-05 07:13:28    阅读次数:268
hdu 2112 HDU Today
HDU Today Time Limit: 15000/5000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 13235    Accepted Submission(s): 3096 Problem Description 经过锦囊相助,海东集团终于度...
分类:其他好文   时间:2014-06-05 07:00:26    阅读次数:277
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!