如何开启word公式模式:“Alt”+"=" 1. 如何输入矩阵: 使用&链接行元素,@进行换行,空格键进行转换 如输出: 先开启公式模式:“Alt”+"=" \vbar\matrix(1&2&3@2&4&5)(space) \vbar 注:公式中的(space)为按下空格键,而不是字符输入 2. ...
分类:
其他好文 时间:
2017-06-08 17:53:19
阅读次数:
250
题目链接:点击打开链接 白书的例题练练手。。。P161 #include <cstdio> #include <iostream> #include <algorithm> #include <math.h> #include <string.h> #include <algorithm> usin ...
分类:
其他好文 时间:
2017-06-07 12:38:09
阅读次数:
188
题目链接:LightOJ 1070 Algebraic Problem 题意:已知a+b和ab的值求a^n+b^n。结果模2^64。 思路: 1.找递推式 得到递推式之后就是矩阵高速幂了 注意:模2^64,定义成unsigned long long 类型,由于无符号类型超过最大范围的数与该数%最大范 ...
分类:
其他好文 时间:
2017-06-06 14:29:12
阅读次数:
228
近期论文用到这个效果。 先实现下, 嘿嘿。 \documentclass{article} \usepackage{tikz,lscape,amsmath} \usepackage[margin=1cm]{geometry} \usetikzlibrary{matrix} \begin{docume ...
分类:
其他好文 时间:
2017-06-06 13:06:16
阅读次数:
199
1 - Follow up in Code Interview kth-smallest-number-in-sorted-matrix Find the kth smallest number in at row and column sorted matrix. [ [1 ,5 ,7], [3 ...
分类:
编程语言 时间:
2017-06-06 12:59:16
阅读次数:
774
@2017.06.04 Follow up in Code Interview 401 - kth-smallest-number-in-sorted-matrix 排序数组,即每一行每一列都是排好序的 类似于之前做的那道题,对这种排序数组,是从左上角往右下角看的。 每次pop一个最小值直到找到kt ...
分类:
其他好文 时间:
2017-06-04 19:53:37
阅读次数:
269
Matrix Given a N × N matrix A, whose element in the i-th row and j-th column Aij is an number that equals i2 + 100000 × i + j2 - 100000 × j + i × j, y ...
分类:
其他好文 时间:
2017-06-04 12:44:56
阅读次数:
245
Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that it is th ...
分类:
其他好文 时间:
2017-06-04 09:48:32
阅读次数:
188
附加一道 同样使用记忆化搜索的题目 329. Longest Increasing Path in a Matrix ...
分类:
其他好文 时间:
2017-06-03 12:46:49
阅读次数:
133
难度上。,,确实。。。不算难 问题是有个矩阵运算的优化 题目是说给个N*K的矩阵A给个K*N的矩阵B(1<=N<=1000 && 1=<K<=6),先把他们乘起来乘为C矩阵。然后算C^(N*N) 相当于 ABABABABABABAB...=(AB)^(N*N) 不如 A(BA)^(N*N-1)B 由 ...
分类:
其他好文 时间:
2017-06-03 11:31:22
阅读次数:
179