[cpp]
/* @JUDGE_ID: 6983KT 10282 C++ */
#include<stdio.h>
#include<string.h>
#define max 100000
typedef struct dict
{
char in[20],dic[20];
}dict;
dict arr[max];
long count=0;
main()
{
char in1[20],in2[20];
int i,j,k,flag;
while(gets(in1))
{
if(!strlen(in1))break;
j=0;
for(i=0;i<strlen(in1);i++)
{if(in1[i]==' ')break;
else arr[count].in[j++]=in1[i];}
j=0;i++;
for(;i<strlen(in1);i++)
{if(in1[i]=='\0')break;
else arr[count].dic[j++]=in1[i];}
count++;
}
for(i=0;i<20;i++)in1[i]='\0';
while(gets(in1))
{
flag=0;
for(i=0;i<count;i++)
{
for(j=0;j<20;j++)in2[j]='\0';
strcpy(in2,arr[i].dic);
if(!(strcmp(in2,in1)))
{
printf("%s\n",arr[i].in);
flag=1; break;
}
}
if(!flag)printf("eh\n");
for(i=0;i<20;i++)in1[i]='\0';
}
}[/cpp]
this is my code and the judgement says time limite exceeded~is there any method can solve this problem???

