自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (1)
  • 收藏
  • 关注

转载 BitmapFactory.Options详解

public BitmapinBitmapIf set, decode methods that take the Options object will attempt to reuse this bitmap when loading content.public intinDensityThe pixel

2013-12-25 09:29:51 474

转载 详解Android动画之Interpolator插入器

SDK对Interpolator的描述是:An interpolator defines the rate of change of an animation. This allows the basic animation effects (alpha, scale, translate, rotate) to be accelerated, decelerated, repeated, e

2013-12-05 17:31:00 619

原创 从扑克牌种任取4张,通过加减乘除四则运算得到数字24

import java.util.HashSet;import java.util.Iterator;import java.util.Scanner;import java.util.Set;/* * 从一副扑克牌中,任取4张。2-10 按其点数计算(为了表示方便10用T表示),J,Q,K,A 统一按 1 计算  要求通过加减乘除四则运算得到数字 24。  本程序可以

2013-04-30 19:25:46 7477

原创 逆推-四人玩火柴棍游戏

*9. 四人玩火柴棍游戏,每一次都是三个人赢,一个人输。输的人要按赢者手中的火柴数进行赔偿,即赢者手中有多少根火柴棍,输者就赔偿多少根。现知道玩过四次后,每人恰好输过一次, 而且每人手中都正好有16根火柴。问此四人做游戏前手中各有多少根火柴? 编程解决此问题。*/public class Test14 {public static void main(String[] args)

2013-04-14 22:20:17 928

原创 算法--数组的下标控制n*n的矩阵

/* * 3. 打印一个 N*N 的方阵,N为每边 N=15 打印出下面图形 字符的个数(3<N<20), 要求                外一层为"T", 第二层为"J", 从第三层         起每层依次打印数字 1,2,3,...            (右图以N为15为例) TTTTTTTTTTTTTTT  TJJJJJJJJJJJJJJJT

2013-04-12 23:31:41 723

原创 递归回溯--数字分解java代码

/* * 5、数字分解   * * 6 *  6  *  5+1  *  4+2  *  4+1+1  *  3+3  *  3+2+1  *  3+1+1+1  *  2+2+2  *  2+2+1+1  *  2+1+1+1+1  *  1+1+1+1+1+1  *  */public class Test5 {public

2013-04-12 23:26:47 932

原创 java版菱形矩阵

用循环做完了。。 老师要求用递归做。。。 哎 有点思路 写写看/** *         1 *      2  9  8 *   3 10 13 12 7 *      4 11  6 *         5 *    *    */class Test2 {public static void main(String[] args) {int n

2013-03-29 20:11:25 898

原创 用递归做螺旋矩阵 java版算法

//这是用递归写出来的。。 不知道写的怎么样。。但是自己做的public class Test1 {public static void main(String[] args) {int n = 10;int x=0,y=0,count =0;int[][] arr = new int[n][n];count = arr[x][y] = 1;test1(arr,x,y,

2013-03-29 12:39:36 976

原创 算法-java版算法竞赛入门解题代码-第3章习题

//例题3-1//开灯问题public class test3_1 {public static void main(String[] args) {int n = 7;int k = 3;boolean[] b= new boolean[n+1];for (int j = 2; j for (int i = 1; i if(i%2==0){ //如果是2的

2013-03-28 13:08:02 530

原创 算法-java版算法竞赛入门解题代码-第2章习题

//2-1public class Test1 {public static void main(String[] args) {Scanner sc = new Scanner(System.in);System.out.println("请输入一个数:");long num = sc.nextLong();System.out.println(" 位数:"+test1(

2013-03-28 13:01:37 638

jni之ndk hello world

第一个jni程序 helloworld.

2013-11-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除