#include<iostream>
#include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
#define N 100
int main()
{
char pw[N],pw1[N];
int n,t=0;
scanf("%s %d",pw,&n);
//printf("%s %d\n",pw,n);
getchar();
while(gets(pw1)&&!(strlen(pw1)==1&&pw1[0]=='#'))
{
t++;
if(strcmp(pw,pw1)==0)
{
printf("Welcome in\n");
return 0;
}
else
printf("Wrong password: %s\n",pw1);
if(t==n)
{
printf("Account locked\n");
return 0;
}
}
return 0;
}
1067
最新推荐文章于 2021-05-18 17:47:07 发布