int n;
int *a, *b;
scanf("%d", &n);
a = (int *)malloc(sizeof(int)*n);
b = (int *)malloc(sizeof(int)*(n-1));
for (int i = 0; i < n; i++)scanf("%d", &a[i]);
for (int i = 1; i < n; i++) {
b[i - 1] = a[i] / a[i-1];
printf("%d,", b[i - 1]);
if (i%3 == 0)printf("\n");
}
free(a);
free(b);
好好考试!