码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
1069. The Black Hole of Numbers
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by takin...
分类:其他好文   时间:2015-03-07 17:11:22    阅读次数:124
【Java】字符串变量和整形之间的相互转化与静态方法static
字符串变量和整形之间的相互转化在任何编程语言中都是很常见的东西,请不要与(int)String等强制类型转换混淆,这样做是不对的,(String)int,诸如这样是不能完成字符串变量和整形之间的相互转化的,强制类型转换只用于,整形int与浮点float的互转,父类转化为子类。 在Java中的字符串String转化为整形int,可以利用Integer.parseInt(),而整形int转化成Str...
分类:编程语言   时间:2015-03-07 14:11:57    阅读次数:172
LeetCode --- 51. N-Queens
题目链接:N-Queens The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens...
分类:其他好文   时间:2015-03-07 11:39:45    阅读次数:179
Lintcode: k Sum
Given n distinct positive integers, integer k (k i) res[i][j][t] = 0;18 else res[i][j][t] = res[i-1][j][t];19 ...
分类:其他好文   时间:2015-03-07 06:17:17    阅读次数:163
Java 包装类 自动装箱和拆箱
包装类(Wrapper Class) 包装类是针对于原生数据类型的包装。 因为有8个原生数据类型,所以对应有8个包装类。 所有的包装类(8个)都位于java.lang下。 Java中的8个包装类分别是:Byte, Short, Integer, Long, Float, Double, Ch...
分类:编程语言   时间:2015-03-06 23:37:15    阅读次数:277
System,Integer,Calendar,Random和容器
System1)arraycopyint[] a = {1.2.3.4};int[] b = new int[5];System.arraycopy(a,1,b,3,2);//把数组a中从下标1开始的元素复制到数组b中下标为3的位置,总共复制2个元素2)currentTimeMillislong l...
分类:其他好文   时间:2015-03-06 23:32:08    阅读次数:188
[leetcode 7]Reverse Integer
1 题目Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about this?Here are...
分类:其他好文   时间:2015-03-06 23:25:23    阅读次数:164
HDU 1978 How many ways
How many waysTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:197864-bit integer IO format:%I64d Java class name:...
分类:其他好文   时间:2015-03-06 23:21:57    阅读次数:167
POJ1579 Function Run Fun
Function Run FunTime Limit: 1000msMemory Limit: 10000KBThis problem will be judged onPKU. Original ID:157964-bit integer IO format:%lld Java class nam...
分类:其他好文   时间:2015-03-06 22:05:29    阅读次数:288
循环调用MAIN
--单位转移录入declare oi_errcode integer; oc_errtext varchar2(100);begin for p in (select * from ssunitinfo where ocid = '104' and hjstatus > 10 and hjs...
分类:其他好文   时间:2015-03-06 16:31:52    阅读次数:122
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!