国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 學(xué)院 > 開(kāi)發(fā)設(shè)計(jì) > 正文

1035. Password 解析

2019-11-10 17:15:48
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

注意 is 和 are 注意 account 和accounts!!!

注意 is 和 are 注意 account 和accounts!!!

注意 is 和 are 注意 account 和accounts!!!

#include <iostream>#include <string>#include <vector>#define MAX 1010using namespace std;bool Convert(string & s) {	bool tag = false;	for (int i = 0; i < s.size(); i++) {		switch (s[i]) {		case '1':s[i] = '@', tag = true; break;		case 'l':s[i] = 'L', tag = true; break;		case 'O':s[i] = 'o', tag = true; break;		case '0':s[i] = '%', tag = true; break;		}	}	return tag;}struct User{	string name;	string passWord;};User list[MAX];vector <bool> isChange;int Count = 0;int main() {	int N;	cin >> N;	isChange.resize(N,false);	bool tag = false;	for (int i = 0; i < N; i++) {		cin >> list[i].name >> list[i].password;		isChange[i] = Convert(list[i].password);		if (isChange[i]) {			Count++;			tag = true;		}	}		if (!tag) {		if(N == 1)			cout << "There is " << N << " account and no account is modified" << endl;		else 			cout << "There are " << N << " accounts and no account is modified" << endl;	}	else {		cout << Count << endl;		for (int i = 0; i < N; i++) {			if (isChange[i]) {				cout << list[i].name << " " << list[i].password << endl;			}		}	}	system("pause");	return 0;}


發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 图木舒克市| 高要市| 连平县| 汶川县| 旬阳县| 高陵县| 岑溪市| 庆城县| 石家庄市| 湘潭县| 忻城县| 宜宾县| 电白县| 东平县| 乳源| 延长县| 丰台区| 阿合奇县| 潞西市| 鲜城| 建湖县| 东兴市| 广德县| 福清市| 峨眉山市| 涡阳县| 惠东县| 涟水县| 藁城市| 裕民县| 三台县| 凤台县| 阳城县| 旬阳县| 梨树县| 北海市| 濉溪县| 曲沃县| 五台县| 新源县| 林周县|