58 人解决,127 人已尝试。
66 份提交通过,共有 1067 份提交。
5.7 EMB 奖励。
单点时限: 1.0 sec
内存限制: 256 MB
Hazy moonlight poors on
The pond located at the
Now,the Plovery Frog plans to choose a sub-matrix,and then merge all of the ponds in it. And he hopes that the huge merged ponds will contains exactly
So,the Plovery Frog wants to know that,how many different ways choosing the sub-matrix can meets his requirement.
In other words,
he wants to know the number of tuples in format
The first line contains an integer
There are
The first line contains
For the next
The next line contains an integer,
For all of the
For each test case, output a line, which contains an integer as your answer.
2 2 2 1 9 0 5 1 5 5 3 1 4 1 5 9 2 6 5 3 5 3 8 4 6 2 6 4 3 3 8 3 2 7 9 19
2 7
58 人解决,127 人已尝试。
66 份提交通过,共有 1067 份提交。
5.7 EMB 奖励。
创建: 2 年,6 月前.
修改: 2 年,6 月前.
最后提交: 2 年,1 月前.
来源: N/A