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

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

1035. Password 解析

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

注意 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;}


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 甘谷县| 辽阳县| 焉耆| 永川市| 湟源县| 资源县| 万山特区| 曲麻莱县| 三原县| 咸宁市| 龙井市| 利津县| 临夏市| 普兰店市| 铜鼓县| 江门市| 方山县| 教育| 水富县| 台南市| 信丰县| 红河县| 军事| 宁陕县| 临洮县| 兰州市| 乌兰察布市| 大丰市| 沧源| 泗水县| 霍邱县| 临西县| 贡嘎县| 英吉沙县| 丰顺县| 安新县| 长寿区| 丹凤县| 金门县| 台州市| 遂川县|