- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
static int Cols (double[,] Arr, out int rows)
{
int n = Arr.GetLength(0);
int m = Arr.GetLength(1);
rows=0;
int i=0;
int j=0;
for (; j < m;j++)
{
i = 0;
while (i < n-1 & Arr[i, j] < (Arr[i+1 , j]))
{
i++;
}
if (i == n-1)
rows++;
}
int k = 0;
i = 0;
for (; i < n; i++)
{
j = 0;
while (j < m-1 & Arr[i, j] < (Arr[i, j+1 ]))
{
j++;
}
if (j == m - 1)
k++;
}
return k;
}
Her 18.12.2015 15:15 # 0
Govno_Coder 18.12.2015 15:23 # 0