#include <cstdio>
#include <cstring>
const int N = 1000;
char c[N];
struct Person
{
char name[11];
char password[11];
};
Person p[N];
int main()
{
int count, r=0, len;
char ch;
scanf("%d", &count);
for(int i=0; i<count; ++i)
scanf("%s%s", p[i].name, p[i].password);
for(int i=0; i<count; ++i)
{
len = strlen(p[i].password);
for(int j=0; j<len; ++j)
{
ch = p[i].password[j];
if(ch == '1'||ch == '0'||ch=='l'||ch=='O')
{
c[i]++;
switch(ch)
{
case '1':
ch = '@';
break;
case '0':
ch = '%';
break;
case 'l':
ch = 'L';
break;
case 'O':
ch = 'o';
break;
}
p[i].password[j]= ch;
}
}
if(c[i]>0)
r++;
}
if(r>0)
{
printf("%d\n", r);
for(int i=0; i<count; ++i)
if(c[i]>0)
printf("%s %s\n", p[i].name, p[i].password);
}
else
{
if(count == 1)
printf("There is 1 account and no account is modified\n");
else
printf("There are %d accounts and no account is modified\n", count);
}
return 0;
}
1035
最新推荐文章于 2024-10-20 22:37:05 发布