You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#include<stdio.h>
|
|
|
|
|
#include<string.h>
|
|
|
|
|
int main(void)
|
|
|
|
|
{
|
|
|
|
|
int n;
|
|
|
|
|
char words[100][100][100];
|
|
|
|
|
char word[100];
|
|
|
|
|
char password[100];
|
|
|
|
|
while (scanf("%d", &n) != EOF)
|
|
|
|
|
{
|
|
|
|
|
getchar();
|
|
|
|
|
if (n == 1)
|
|
|
|
|
{
|
|
|
|
|
int i = 0;
|
|
|
|
|
gets(word);
|
|
|
|
|
gets(password)
|
|
|
|
|
while (words[i][0][0] != '\0')
|
|
|
|
|
{
|
|
|
|
|
if (strcmp(words[i][0], word) == 0 && strcmp(words[i][1], password) == 0)
|
|
|
|
|
{
|
|
|
|
|
scanf("%d", &n);
|
|
|
|
|
getchar();
|
|
|
|
|
switch(n)
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֲ<EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1,2,3<>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>\n");
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if(n == 0)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֲ<EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>0,1<>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>\n");
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|