15 lines
441 B
C
15 lines
441 B
C
#include <stdio.h>
|
|
|
|
int main() {
|
|
for (int row = 0; row < 9; row++) {
|
|
for (int col = 0; col < 9; col++) {
|
|
printf("row: %d col: %d Q: %d F: %d\n", row, col, (row / 3) * 3 + col / 3, (row % 3) * 3 + col % 3);
|
|
}
|
|
}
|
|
|
|
for (int q = 0; q < 9; q++) {
|
|
for (int f = 0; f < 9; f++) {
|
|
printf("Q: %d F: %d row: %d col: %d\n", q, f, (q / 3) * 3 + (f / 3), (q % 3) * 3 + (f % 3));
|
|
}
|
|
}
|
|
} |