3 void Vectorize(int, int, int *, int *, int *);
4 void Rotate(int, int, int, int *, int *, int *);
8 #pragma parameter N 8 16
9 #pragma parameter K 100 1000
14 int R
[N
][N
], X
[K
][N
], t
;
17 for (j
= 0; j
< N
; ++j
)
18 for (i
= j
; i
< N
; ++i
)
21 for (k
= 0; k
< K
; ++k
)
22 for (j
= 0; j
< N
; ++j
)
23 X
[k
][j
] = ReadMatrix();
25 for (k
= 0; k
< K
; ++k
)
26 for (j
= 0; j
< N
; ++j
) {
27 Vectorize(R
[j
][j
], X
[k
][j
], &R
[j
][j
], &X
[k
][j
], &t
);
28 for (i
= j
+1; i
< N
; ++i
)
29 Rotate(R
[j
][i
], X
[k
][i
], t
, &R
[j
][i
], &X
[k
][i
], &t
);
32 for (j
= 0; j
< N
; ++j
)
33 for (i
= j
; i
< N
; ++i
)