在《CSS3 2D转换技术之translate实战开发》文章中,我给大家列出了CSS3中的2D转换方法:1. translate()2. rotate()3. scale()4. skew()5. matrix()同时对第一个方法 translate()做了非常详尽的介绍,并带领大家实战开发...
分类:
Web程序 时间:
2014-08-07 03:05:18
阅读次数:
236
问题:蛇形矩阵分析:设置变量dir,0123分别代表方向右下左上class Solution {public: int num[300][300]; void dfs(int x,int y,int k,int n,int dir) { num[x][y]=k; ...
分类:
其他好文 时间:
2014-08-06 22:25:42
阅读次数:
169
问题:矩阵顺时针旋转90度class Solution {public: bool dfs(vector > &matrix,int target,int n) { if(n==matrix.size()) return false; if(matrix[n]...
分类:
其他好文 时间:
2014-08-06 22:21:42
阅读次数:
222
问题:二维数组中是否存在一个数class Solution {public: bool dfs(vector > &matrix,int target,int n) { if(n==matrix.size()) return false; if(matrix[...
分类:
其他好文 时间:
2014-08-06 22:17:52
阅读次数:
243
矩阵相乘,采用一行的去访问,比采用一列访问时间更短,根据数组是一行去储存的。神奇小代码。 Matrix multiplicationTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Tot...
分类:
其他好文 时间:
2014-08-06 18:18:11
阅读次数:
333
Matrix multiplicationTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1775Accepted Submission(s):...
分类:
其他好文 时间:
2014-08-06 17:53:01
阅读次数:
206
Problem Description
Given two matrices A and B of size n×n, find the product of them.
bobo hates big integers. So you are only asked to find the result modulo 3.
Input
The input con...
分类:
其他好文 时间:
2014-08-06 14:58:51
阅读次数:
220
题目连接 :http://acm.hdu.edu.cn/showproblem.php?pid=4920题意 :给两个n*n的矩阵A、B,要求算的A*B (答案对3取模)(比赛的时候一直想不到怎么去消复杂度,在最后的时候想到了用三进制压几位状态(就是几位几位算)应该可以过的,可是敲完比赛也结束。(压...
分类:
其他好文 时间:
2014-08-06 14:27:31
阅读次数:
195
The Hungarian algorithm withThe adjacency matrix:计算最大匹配问题int n1, n2, m, ans;int res[MAXN];bool vis[MAXN], map[MAXN][MAXN];void init(){ int t1, t2; ...
分类:
其他好文 时间:
2014-08-06 14:18:31
阅读次数:
208
线段树 1 #include 2 using namespace std; 3 4 const int maxn = 1000005; 5 const int INF = 1000000009; 6 7 struct node { 8 int sum,ma,mi; 9...
分类:
其他好文 时间:
2014-08-06 14:09:11
阅读次数:
374