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
主要讲的各个基本类型,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
打开一个配置文件:打开一个配置文件操作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;...
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
练习一下数学知识了。。
【题目链接】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
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
字符串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
题目描述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
题目链接: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