摘要:
题目:http://ac.jobdu.com/problem.php?cid=1045&pid=0题目描述:在一个M * N的矩阵中,所有的元素只有0和1,从这个矩阵中找出一个面积最大的全1子矩阵,所谓最大是指元素1的个数最多。输入:输入可能包含多个测试样例。对于每个测试案例,输入的第一行是两个整数m、n(1int m, n;int x[1002][1002];int upperbound[1002][1002];//pre处理后,x[i][j]表示原矩阵第i行中x[i][j]前面有多少个连续的1void pre() { for (int i = 0; i 0) { ... 阅读全文
摘要:
答案是:不会被更新,失效了,参见wiki:If a symbolic link is deleted, its target remains unaffected. If a symbolic link points to a target, and sometime later that target is moved, renamed or deleted, the symbolic link is not automatically updated or deleted, but continues to exist and still points to the old target, 阅读全文
摘要:
http://www.boost.org/doc/libs/1_53_0/more/getting_started/unix-variants.html 看官方安装指南自然是最正确的选择 先sudo apt-get install python-dev,再sudo apt-get install libbz2-dev,如果不做这一步,就会在安装时候得到“patchlevel.h:没有那个文件或目录”,“bzlib.h:没有那个文件或目录”这样的错误信息。(如果你已经安装并得到了这样的信息,也可以补救:执行完这两个安装命令后,再执行./b2 install,就会更新之前失败或跳过的那些文件。.. 阅读全文