注意输出的is / are 和 account / accounts
//#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main()
{
//freopen("input.txt","r",stdin);
vector<string>v;
int num;
cin >> num;
for (int i = 0; i < num; i++)
{
string name, password;
cin >> name >> password;
int passLen = password.length(),flag=0;
for(int j=0;j< passLen;j++)
switch (password[j])
{
case '1' : password[j] = '@'; flag = 1; break;
case '0' : password[j] = '%'; flag = 1; break;
case 'l' : password[j] = 'L'; flag = 1; break;
case 'O': password[j] = 'o'; flag = 1; break;
}
if (flag == 1)
{
string info = name + " " + password;
v.push_back(info);
}
}
if (v.size() > 0)
{
cout << v.size() << endl;
for (int i = 0; i < v.size(); i++)
cout << v[i] << endl;
}
else
{
cout << "There ";
if (num >= 2)
cout <<"are "<<num<< " accounts";
else
cout << "is " << num << " account";
cout << " and no account is modified";
}
return 0;
}