码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
水题:Counting Kangaroos is Fun
DescriptionThere arenkangaroos with pockets. Each kangaroo has a size (integer number). A kangaroo can go into another kangaroo's pocket if and only i...
分类:其他好文   时间:2015-04-27 14:47:15    阅读次数:128
Dive to Python 学习
主要讲的各个基本类型,integer,float,list,tuple,dic, list method:append,insert,extend, index tuple:no method ,can not change it,bu we can use the index to travel across dic: create a dic by using di...
分类:编程语言   时间:2015-04-27 13:24:59    阅读次数:168
《用delphi开发共享软件》-15.2桌面提示器
打开一个配置文件:打开一个配置文件操作TStringGrid 1 Procedure EmptyGrid(Var sg:TStringGrid); 2 Var i:Integer; 3 begin 4 for i:=1 to sg.RowCount -1 do 5 sg.Rows[i].clear;...
分类:Windows程序   时间:2015-04-27 12:53:14    阅读次数:232
将一个十进制数转为二进制形式并判断它是否是2的n次幂
java提供了十进制转化为二进制、十六进制、八进制的函数;在java.lang.Integer这个API包中,转换函数如下    public static String toBinaryString(int i) public static String toHexString(int i) public static Strin...
分类:其他好文   时间:2015-04-27 09:53:13    阅读次数:86
HDU 2669 (扩展欧几里得入门)
练习一下数学知识了。。 【题目链接】click here~~ 【题目大意】Find the nonnegative integer X and integer Y to satisfy X*a + Y*b = 1. If no such answer print "sorry" instead.  求满足式子的x和y否则输出“sorry” 【解题思路】扩展欧几里得的基础了, 扩展欧几里德...
分类:其他好文   时间:2015-04-27 09:44:05    阅读次数:104
LeetCode-String to Integer (atoi)
Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below a...
分类:其他好文   时间:2015-04-27 08:13:22    阅读次数:125
网站计数器
一个简单的网站计数器方法: ---------------------------------------------------------------- <body> <%Integercount=(Integer)application.getAttribute("count"); if(count==null){ count=1; }else{ count++; } application.setAttribute("count",count); %>..
分类:Web程序   时间:2015-04-27 00:40:31    阅读次数:158
Android xml定义常量
字符串strings.xml 192.168.0.100getResources().getString(R.string.server_ip)整型intergers.xml 6000getResources().getInteger(R.integer.server_port)
分类:移动开发   时间:2015-04-26 15:00:33    阅读次数:148
LeetCode (24) 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 number by the sum of the squares...
分类:移动开发   时间:2015-04-26 12:27:42    阅读次数:114
[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 numbe...
分类:移动开发   时间:2015-04-26 10:53:59    阅读次数:123
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!