#include <stdio.h> #define INDEX 500 typedef int HASH ; void initHash(HASH* hash) { int count = 0; char* ptr = hash; count = INDEX * sizeof(HASH); while(count--) { *ptr=0; ptr++; } } int main() { int N; int buf; HASH hash[INDEX+1]; initHash(hash); scanf("%d",&N); getchar(); while...