public?class?MainActivity?extends?Activity?implements?OnTouchListener?{
//?放大缩小
Matrix?matrix?=?new?Matrix();
Matrix?savedMatrix?=?new?Matrix();
PointF?start?=?new?Poi...
分类:
移动开发 时间:
2014-11-07 13:16:31
阅读次数:
315
A Bit Fun
Time Limit: 5000/2500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
...
分类:
其他好文 时间:
2014-11-07 11:22:12
阅读次数:
124
设置ImageView为全屏显示本文地址: http://blog.csdn.net/caroline_wendyImageView默认会适应屏幕大小, 如果想使用全屏填充, 则需要使用:android:scaleType="fitXY"
android:scaleType="matrix"
注意android:scaleType的参数选择.参考: http://developer.android...
分类:
移动开发 时间:
2014-11-07 08:41:44
阅读次数:
350
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l...
分类:
其他好文 时间:
2014-11-06 21:43:55
阅读次数:
156
clc;clear all;close all;Start_Pi = [-1,-1];State_k = ['H','L'];% 转移矩阵Transition_matrix = [-1,-1.322;-1.322,-0.737];% 0 H L % H -1 ...
分类:
编程语言 时间:
2014-11-06 17:17:31
阅读次数:
139
题目:是Spiral Matrix相关的的。这题的意思是给定一个n,那么在n*n的矩阵里按照循环记录将1,2,3,..., n*n。如下如果给定3,那么:[ [ 1, 2, 3 ], [ 8, 9, 4 ], [ 7, 6, 5 ]]一开始我想是不是有数学公式直接下标对应的,那直接遍历输出就可以了。...
分类:
其他好文 时间:
2014-11-05 23:06:02
阅读次数:
188
Arrange the Schedule
Time Limit: 1 Second Memory Limit: 65536 KB
In Summer 2011, the ZJU-ICPC Team has a n-days training schedule. ZJU-ICPC Team has been divided into 4 Group: Akiba, BiliBi...
分类:
其他好文 时间:
2014-11-05 21:37:51
阅读次数:
284
Search a 2D MatrixWrite an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row...
分类:
其他好文 时间:
2014-11-04 14:32:36
阅读次数:
154