您的答案為:8 1 2 3 4 正確答案為: 1 2 3 4 5 #include <stdio.h> #include <stdlib.h> int main() { int number[5]; int i; while(scanf("%d %d %d %d", &number[0], &number[1], &number[2], &number[3]) != EOF) { if(number[3] - number[2] == number[2] - number[1]) number[4] = number[3] + number[3] - number[2]; else number[4] = number[3] * number[3] / number[2]; for(i = 0; i < 5; i ++) printf("%d ", number[i]); printf("\n"); } return 0; }