/*
// n이 홀수일 때 로직 다시 짜기
#include <stdio.h>
int main() {
int t;
scanf("%d", &t);
while(t--) {
int n;
scanf("%d", &n);
int m=2*n*((3*n)/2);
printf("%d\n", m);
int x[3]={}, y[3]={2, 1, 2};
for(int i=0; i<(3*n)/2; i++) {
y[1]=2*i+2;
y[0]=y[2]=2*i+1;
for(int j=0; j<n; j++) {
x[0]=x[1]=3*j+1; x[2]=3*j+2;
y[1]=2*i+1;
printf("%d %d %d %d %d %d\n", x[0], y[0], x[1], y[1], x[2], y[2]);
x[0]++; x[2]++;
x[1]+=2; y[1]++;
printf("%d %d %d %d %d %d\n", x[0], y[0], x[1], y[1], x[2], y[2]);
}
}
}
}
*/
To embed this project on your website, copy the following code and paste it into your website's HTML: