码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
bzoj2487: Super Poker II
DescriptionI have a set of super poker cards, consisting of an infinite number of cards. For each positive composite integer p, there are exactly four...
分类:其他好文   时间:2015-07-26 16:59:27    阅读次数:122
1059. Prime Factors (25)
题目如下: Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *…*pm^km. Input Specification: Each input file contai...
分类:其他好文   时间:2015-07-26 14:18:45    阅读次数:124
Integer.valueof(String s)和Integer.parseInt(String s)的具体区别是什么?
Integer.valueof(String s)是将一个包装类是将一个实际值为数字的变量先转成string型再将它转成Integer型的包装类对象(相当于转成了int的对象)这样转完的对象就具有方法和属性了。而Integer.parseInt(String s)只是将是数字的字符串转成数字,注意他...
分类:其他好文   时间:2015-07-26 12:25:47    阅读次数:121
判断Vaule是不是数字
function IsNumberic(Vaule:String):Boolean; //判断Vaule是不是数字vari:integer;beginresult:=true; //设置返回值为 是(真)Vaule:=trim(Vaule); //去空格 for i:=1 to length(Vau...
分类:其他好文   时间:2015-07-26 11:04:45    阅读次数:142
编译lisp源代码为可执行文件
(defun main (&rest args) ? ?(defun factorial (n) ? ? ?(if (= n 0) ? ? ? ? ?1 ? ? ? ? ?(* n (factorial (- n 1))) ) ) ? ?(loop for i in *args* do (write (factorial (parse-integer i))...
分类:其他好文   时间:2015-07-26 08:37:20    阅读次数:291
leetcode-202-Happy Number
Happy Number Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive integer, replace the numb...
分类:移动开发   时间:2015-07-26 06:15:48    阅读次数:134
PHP数据类型转换(字符转数字,数字转字符)
PHP的数据类型转换属于强制转换,允许转换的PHP数据类型有:(int)、(integer):转换成整形 (float)、(double)、(real):转换成浮点型 (string):转换成字符串 (bool)、(boolean):转换成布尔类型 (array):转换成数组 (object):转换...
分类:Web程序   时间:2015-07-26 06:06:29    阅读次数:161
Project Euler:Problem 91 Right triangles with integer coordinates
The points P (x1, y1) and Q (x2, y2) are plotted at integer co-ordinates and are joined to the origin, O(0,0), to form ΔOPQ. There are exactly fourteen triangles containing a right angle that...
分类:其他好文   时间:2015-07-26 00:35:30    阅读次数:384
Java 中 Map 的使用
Map接口提供了一组可以以键-值对(key,value)形式存储的数据结构。 Map对存入元素只有一个要求,就是键(key)不能重复,Map对于key,value要求不是很严格,key只要是引用类型即可。通常情况下,使用String和Integer比较多。Map提供了一个方法用来存入数据: V put(K k,V v) 该方法的作用是将key-value对存入Map中,因为Map中不允许出现重...
分类:编程语言   时间:2015-07-25 21:38:45    阅读次数:257
[LeetCode][JavaScript]String to Integer (atoi)
String to Integer (atoi)Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, plea...
分类:编程语言   时间:2015-07-25 21:27:39    阅读次数:243
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!