Category

Similar Problems

0141. Matritsa12

Time limit : 1000 ms
Memory limit : 64 mb

Matritsani [$x,y$] intervalda yotadigan elementlarining o`rtacha qiymati xisoblansin.


Kiruvchi ma`lumotlar: Birinchi satrda $n$ va $m$ matritsa o`lchamlari ($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 $x$ va $y$ butun sonlar.


Chiquvchi ma`lumotlar: Masala yechimi $10^{-2}$ aniqlikda.

Input
4 5
42 -15 86 -67 70
24 86 1 56 50
36 -82 86 -64 26
55 11 11 67 84
48 84
Output
63.67
Input
7 10
4 -36 84 -2 44 -17 81 -25 14 -57
3 84 75 77 39 32 48 22 9 48
25 -6 10 -58 74 -15 57 -43 33 -10
72 74 45 89 49 78 27 72 80 23
18 -11 92 -51 21 -9 50 -69 8 -14
49 79 91 57 61 56 45 9 71 38
92 -91 10 -34 11 -17 69 -83 29 -2
44 53
Output
47.25