#include<iostream>
#include<string>
using namespace std;
const int maxn = 1100;
struct stu {
string name;
string password;
}stu,res[maxn];
int main() {
int n,cnt=0;
bool flag;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> stu.name>>stu.password;
flag = false;
for (int i = 0; i < stu.password.length(); i++) {
if (stu.password[i] == '0' || stu.password[i] == 'O' || stu.password[i] == '1' || stu.password[i] == 'l') {
flag = true;
if (stu.password[i] == '0')
stu.password[i] = '%';
if (stu.password[i] == 'O')
stu.password[i] = 'o';
if (stu.password[i] == '1')
stu.password[i] = '@';
if (stu.password[i] == 'l')
stu.password[i] = 'L';
}
}
if(flag) res[cnt++] = stu;
}
if (flag == false) {
if (n == 1)
printf_s("There is 1 account and no account is modified");
else
printf_s("There are %d acounts and no account is modified",n);
}
else {
cout << cnt << endl;
for (int i = 0; i < cnt; i++)
cout << res[i].name << " " << res[i].password<<endl;
}
system("pause");
return 0;
}
06-08
308
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)