Dima and Sequence time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Dima got into number sequences. Now he’s got sequence a1, a2, …, an, co
题目:http://codeforces.com/problemset/problem/366/E 其实就是找 n * m 矩阵中数字 x 和 数字 y 的最远距离。 方法参照武森的论文《浅谈信息学中的“0”和“1”》 先约定符号:xi,xj (i,j)是x的下标,当然,矩阵中的值是可以重复的 上面是武森的论文原文,加上我之前的符号约定,我在做点解释: 其实那个max={四种可能
题目链接:Dima and Bacteria Dima took up the biology of bacteria, as a result of his experiments, he invented ktypes of bacteria. Overall, there are n bacteria at his laboratory right now, and the number