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

首頁 > 學院 > 開發設計 > 正文

1035. Password 解析

2019-11-09 19:10:56
字體:
來源:轉載
供稿:網友

注意 is 和 are 注意 account 和accounts?。。?/p>

注意 is 和 are 注意 account 和accounts?。。?/p>

注意 is 和 are 注意 account 和accounts!?。?/p>

#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;}


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 南靖县| 武平县| 武邑县| 宝丰县| 和顺县| 锦屏县| 措勤县| 庐江县| 马尔康县| 万年县| 阿拉善右旗| 宁城县| 都江堰市| 扶绥县| 永顺县| 盐城市| 克山县| 满城县| 南川市| 苏州市| 泸定县| 巴彦县| 安岳县| 新兴县| 涿鹿县| 柳河县| 茂名市| 清徐县| 屯门区| 吉木萨尔县| 叙永县| 沂源县| 赤壁市| 新干县| 湖口县| 卓尼县| 互助| 芮城县| 龙江县| 右玉县| 庐江县|