Grid
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Background
先预祝各位卷王期末取得好成绩!!!
Description
在一个行列的网格中,每个格子都填充了任意一个数字,现在你需要对每一对求出在以为左上角,为右下角的矩阵外有多少个不同的数
Format
Input
第一行,分别是
接下来行,每行个数,代表相应网格内填充的数字
Output
以表示矩阵左上角为和时的答案
那么输出格式为
$ans_{N-n+1,1}~ans_{N-n+1,2}~......~ans_{N-n+1,M-m+1} $
Samples
3 4 5 2 2
2 2 1 1
3 2 5 3
3 4 4 3
4 4 3
5 3 4
Limitation
新生周赛第七场(DIV. 3)
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2022-12-25 19:30
- End at
- 2022-12-25 21:30
- Duration
- 2 hour(s)
- Host
- Partic.
- 35