include<stdio.h> include<math.h> int main(){ int val; while(scanf("%d", &val) != EOF) { int *str = (int *)malloc(val * sizeof(int)); int i; for(i = 0; i < val; i++) scanf("%d", &str[i]); int str2[100000]={0}; for(i = 0; i ...