#include typedef struct { char s[32]; int i; } hash_s; #define HASH 541 hash_s herci[HASH],role[HASH]; int mat[101][60]; int muze[101]; int *he[101]; int hash(const char *s){ int x; for(x=0;*s;s++) x=((x<<3)+*s)%HASH; return(x); } void add(int *t,const int *s,int d){ int i; for(i=0;i