#include <stdio.h> int cmp (int *a, int *b) { return (*a - *b); } int main() { int n1 = 0, n2 = 0, n3 = 0, n4 = 0; int a1[1024] = {0}; int a2[1024] = {0}; scanf("%d", &n1); for (int i = 0; i < n1; i++) { scanf("%d", &a1[i]); ...