码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
简单的传球游戏(矩阵)
简单的传球游戏Time Limit:1000ms Memory Limit:65536KB64-bit integer IO format:%lld Java class name:MainK(3B->C->A2. A->C->B->ASource第十三届北京师范大学程序设计竞赛决赛Authors....
分类:其他好文   时间:2015-05-10 00:50:00    阅读次数:176
BestCoder Round #40 1001——精度——Tom and paper
Problem DescriptionThere is a piece of paper in front of Tom, its length and width are integer. Tom knows the area of this paper, he wants to know the...
分类:其他好文   时间:2015-05-09 23:17:31    阅读次数:193
BNU 49102进化之地(Evoland) BFS
进化之地(Evoland) Time Limit: 1000ms Memory Limit: 65536KB 64-bit integer IO format: %lld      Java class name: Main Prev Submit Status Statistics Discuss Next Font Size:  +   - T...
分类:其他好文   时间:2015-05-09 20:30:33    阅读次数:179
BNU 49100超级线段树
超级线段树 Time Limit: 5000ms Memory Limit: 65536KB 64-bit integer IO format: %lld      Java class name: Main Prev Submit Status Statistics Discuss Next Font Size:  +   - Type:   ...
分类:其他好文   时间:2015-05-09 20:27:54    阅读次数:171
LeetCode(9)--Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.思想: 先计算出这个整数的逆序数,然后比较它和原来的数每位是否都相同即可。另外要注意负数没有回文数,还应该考虑overflow一定不是回文数。AC代码:...
分类:其他好文   时间:2015-05-09 18:58:58    阅读次数:121
区分Integer.getInteger和Integer.valueOf使用方法
Integer类有两个看起来很类似的静态方法,一个是Integer.getInteger(String),另外一个是Integer.valueOf(String)。如果只看方法名称的话,很容易将这两个方法的功能区分开来,还是让我们来看看Java文档。 Integer.getInteger(Stri....
分类:其他好文   时间:2015-05-09 18:57:22    阅读次数:118
判断数组是否包含某值
//方法一: Integer[] arr= {1,2,3}; List list = Arrays.asList(arr); if (list.contains(1)&&list.contains(2)){ System...
分类:编程语言   时间:2015-05-09 18:48:45    阅读次数:112
LeetCode(8)-- String to Integer (atoi)
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:其他好文   时间:2015-05-09 17:29:40    阅读次数:125
LeetCode(7)--Reverse Integer
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321思想:一个整数的倒序,没啥说的,在long类型上比较来避免overflow。AC代码: 1 class Solution { ...
分类:其他好文   时间:2015-05-09 17:21:07    阅读次数:88
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...
分类:移动开发   时间:2015-05-09 14:51:09    阅读次数:120
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!