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
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找了一下,还真有,一次性AC的感觉简直不能再爽)
我的Python版本解答:
"""
Programmer : EOF
E-mail : jasonleaster@gmail.com...
分类:
其他好文 时间:
2015-04-07 00:46:13
阅读次数:
203
转载请注明出处: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()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
质数(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
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
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的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