Category

Similar Problems

0135. Matritsa6

Time limit : 1000 ms
Memory limit : 64 mb

Sizga o`lchami $n*m$ lik bo`lgan matritsa berilgan. Bu matritsani $k$-qator elementlari olib tashlansin.


Kiruvchi ma`lumotlar: Birinchi satrda $n$ va $m$ ($1\le n,m \le 50$). Keyingi $n$ ta satrda $m$ ta butun son matritsa elementlari ($-100\le a[i][j] \le 100$). Keyingi satrda $k$ berilgan ($1\le k \le 50$).


Chiquvchi ma`lumotlar: Xosil bo`lgan matritsa.

Input
3 1
15
76
39
1
Output
76
39
Input
5 6
71 27 -63 45 4 -24
21 -37 41 -47 16 -48
87 26 -69 55 89 -58
1 -2 93 -95 48 -79
20 49 -21 36 80 -58
4
Output
71 27 -63 45 4 -24
21 -37 41 -47 16 -48
87 26 -69 55 89 -58
20 49 -21 36 80 -58