#include <stdio.h> //动态数组来实现该题目 #include <malloc.h> int main(void) { int flag = 0; int n = 0; int num = 0; int j = 0; scanf("%d", &n); int* val = (int*)malloc(sizeof(int) * n); for (int i = 0;i < n;++i) { scanf("%d", val + i); } scanf("%d", &num); for (int i = 0;i < n;++i)...