码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
uva 10739 String to Palindrome (dp)
uva 10739 String to PalindromeIn this problem you are asked to convert a string into a palindrome with minimum number of operations. The operations are described below:Here you’d have the ultimate free...
分类:其他好文   时间:2015-04-07 10:02:16    阅读次数:119
sdut2610---Boring Counting(离线+树状数组+离散化)
Boring Counting Time Limit: 3000ms Memory limit: 65536K 有疑问?点这里^_^ 题目描述 In this problem you are given a number sequence P consisting of N integer and Pi is the ith element in the sequence. No...
分类:编程语言   时间:2015-04-07 09:58:52    阅读次数:146
LeetCode #Palindrome Number#
LeetCode #Palindrome Number# 又是个软柿子啊...(主要是今天不知道在哪儿看到一个回文的题目了,然后就特地去LeetCode找了一下,还真有,一次性AC的感觉简直不能再爽) 我的Python版本解答: """ Programmer : EOF E-mail : jasonleaster@gmail.com...
分类:其他好文   时间:2015-04-07 00:46:13    阅读次数:203
13年山东省赛 The number of steps(概率dp水题)
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraudThe number of stepsTime Limit:1 SecMemory Limit:128 MDescriptionMary stands in a strange maze, the maz...
分类:其他好文   时间:2015-04-07 00:39:29    阅读次数:183
getFetchSize()
getFetchSize()returns the number of records that database fetch to your applicaton at a time. By default, the fetch size is 10. Let's assume that your...
分类:其他好文   时间:2015-04-07 00:29:37    阅读次数:250
求100到200之间的素数
质数(prime number)又称素数,有无限个。一个大于1的自然数,除了1和它本身外,不能整除以其他自然数(质数),换句话说就是该数除了1和它本身以外不再有其他的因数。 /** * 判断100 ~ 200间素数的个数 * * @author Administrator */ public class IsPrime { public static void main(String[] args) {...
分类:其他好文   时间:2015-04-06 23:16:55    阅读次数:176
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2015-04-06 23:07:35    阅读次数:137
hdu 1394 Minimum Inversion Number 逆序数/树状数组
Minimum Inversion NumberTime Limit: 1 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1394DescriptionThe inversion number of a gi...
分类:编程语言   时间:2015-04-06 23:00:48    阅读次数:216
JavaScript使用Max函数返回两个数字中较大数的代码
JavaScript使用Max函数返回两个数字中较大数的代码。JavaScript的Math对象带有一个max函数用于获取两个数字的较大数代码:<pid="demo">Clickthebuttontoreturnthehighestnumberof5and10.</p><buttonit</button><script>functionmyFunction(){documen..
分类:编程语言   时间:2015-04-06 18:56:18    阅读次数:154
幽默数
DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18,...
分类:其他好文   时间:2015-04-06 16:58:47    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!