You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
254 B
13 lines
254 B
7 months ago
|
NR < 50 { n = split($0, x)
|
||
|
for (i = 1; i <= n; i++)
|
||
|
for (j = 1; j <= n; j++)
|
||
|
y[i,j] = n * i + j
|
||
|
for (i = 1; i <= n; i++)
|
||
|
delete y[i,i]
|
||
|
k = 0
|
||
|
for (i in y)
|
||
|
k++
|
||
|
if (k != int(n^2-n))
|
||
|
printf "delete2 miscount %d vs %d at %d\n", k, n^2-n, NR
|
||
|
}
|