通过AsyncTask来加载图片,通过Matrix来实现图片的缩放和旋转直接看程序MainAcitivy.javapackage com.example.sample_4_22;import java.util.ArrayList;import java.util.List;import andro...
分类:
其他好文 时间:
2014-07-29 20:48:22
阅读次数:
328
[LeetCode]Search a 2D Matrix...
分类:
其他好文 时间:
2014-07-29 15:14:31
阅读次数:
154
HDU 2830 Matrix Swapping II (最大完全子矩阵之可移动列)...
分类:
移动开发 时间:
2014-07-29 14:36:08
阅读次数:
236
Matrix Multiplication
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 16118
Accepted: 3485
Description
You are given three n × n matrices A, B and C. Doe...
分类:
其他好文 时间:
2014-07-29 14:29:48
阅读次数:
251
我们定义一个矩阵的权值为这个矩阵四个角上的数值的最小值。现在小M有一个矩阵,他想在这个矩阵中寻找到一个权值最大的子矩阵,请你告诉他这个最大权值。(距形规模最大为2000*2000)比赛 看到第二题那么大的数据 就他妈不想写了。。直接写了个爆搜看第三题,也就是这题。。总感觉可以做的感觉,但就是想不出好...
分类:
其他好文 时间:
2014-07-29 12:11:46
阅读次数:
267
给一个无向图,如果第i个点连接第j条边,那么mat[i][j]=1,否则mat[i][j]=0。求mat的转置乘以本身得到的矩阵每个位置的和是多少?理解矩阵的意义就比较好做了。mat[i][j]表示i点可以连接到j边,转置后相乘的意义是第i边和第j边有公共点。这样,我们只需要统计每个点的度数,这样我...
分类:
其他好文 时间:
2014-07-29 11:40:46
阅读次数:
207
转自http://biandroid.iteye.com/blog/1399462第一部分 Matrix的数学原理在Android中,如果你用Matrix进行过图像处理,那么一定知道Matrix这个类。Android中的Matrix是一个3 x 3的矩阵,其内容如下:Matrix的对图像的处理可分为...
分类:
移动开发 时间:
2014-07-27 21:48:49
阅读次数:
384
一个N*N(1
C x1,y1,x2,y2 表示从x1行y1列到x2行y2列的元素全部反转(0变成1,1变成0);
Q x y表示询问x行y列的元素是0还是1。
题目乍一看感觉还是很难,如果能记录每一个元素的状态值,那答案是显而易见的,但是元素过多,如果每次都对每一个元素进行更新状态的话,复杂度太高。实际上只要记录边界的特定坐标的反转次数,最好的选择那就是二维树状数组了。
...
分类:
其他好文 时间:
2014-07-27 11:17:02
阅读次数:
215
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.For example, Given n = 3,You should return the followin...
分类:
其他好文 时间:
2014-07-27 10:21:02
阅读次数:
219
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example, Given the following matrix:[ [ 1,...
分类:
其他好文 时间:
2014-07-27 10:16:02
阅读次数:
135