Math.random():获取0~1随机数Math.floor() method rounds a number DOWNWARDS to the nearest integer, and returns the result. (小于等于 x,且与 x 最接近的整数。)其实返回值就是该数的整数位...
分类:
其他好文 时间:
2015-02-12 10:34:28
阅读次数:
102
uva 10706 Number Sequence
A single positive integer iis given. Write a program to find the digit located in the position
iin the sequence of number groups S1S2…Sk. Each group
Skconsists o...
分类:
其他好文 时间:
2015-02-12 09:22:27
阅读次数:
156
Problem StatementYou are given an integer sequence A and an int N that is a power of 2. All elements of A are between 0 and N-1, inclusive.You can now...
分类:
其他好文 时间:
2015-02-11 20:16:30
阅读次数:
217
publicclassMyActivityextendsActivity{
/**Calledwhentheactivityisfirstcreated.*/
SoundPoolsp;//得到一个声音池引用
HashMap<Integer,Integer>spMap;//得到一个map的引用
Buttonb1;//声音播放控制按钮
Buttonb1Pause;//声音暂停控制按钮
Buttonb2;//声音播放控制按钮..
分类:
移动开发 时间:
2015-02-11 18:57:40
阅读次数:
188
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note:You may assume that A has enough space (size that is greater or equa...
分类:
其他好文 时间:
2015-02-11 18:09:29
阅读次数:
159
SQLite sql script:CREATE TABLE BookKindList( BookKindID INTEGER PRIMARY KEY AUTOINCREMENT, BookKindName varchar(500) not null, BookKindCode ...
分类:
数据库 时间:
2015-02-11 16:30:19
阅读次数:
212
标题:Integer to Roman通过率:34.4%难度:中等Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.前面做过数字转罗马数字...
分类:
其他好文 时间:
2015-02-11 16:04:41
阅读次数:
143
if语句主要来检测一个条件,并根据这个条件是True或者False来执行一段代码;1234567891011121314151617varI: Integer;FileGood: Boolean;beginFileGood := True;ifFileGood then{ 简洁的写法,判断FileG...
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:
其他好文 时间:
2015-02-11 12:40:01
阅读次数:
96