#include <iostream>
#include <cstring>
using namespace std;
int main() {
string str, s;
int n, i;
cin >> str >> n; getchar();
for(i = 0; i < n; i++){
getline(cin, s);
if(s == "#") break;
else if(s == str){
printf("Welcome in"); break;
}
else cout << "Wrong password: " << s << endl;
}
if(i == n) printf("Account locked");
return 0;
}
C语言程序设计-1067 试密码
最新推荐文章于 2021-06-26 20:03:31 发布