国产探花免费观看_亚洲丰满少妇自慰呻吟_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;}


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 广德县| 金坛市| 云霄县| 沐川县| 南靖县| 泌阳县| 合江县| 奉化市| 五常市| 浏阳市| 彩票| 游戏| 广南县| 仁布县| 浦县| 靖边县| 襄城县| 航空| 内江市| 连城县| 金门县| 江陵县| 麦盖提县| 莎车县| 陆河县| 舒城县| 雷山县| 岫岩| 米易县| 澎湖县| 阿荣旗| 四子王旗| 怀宁县| 岳阳县| 友谊县| 天峻县| 永修县| 石棉县| 崇明县| 靖边县| 镇宁|