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

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

1035. Password 解析

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

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


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 舞阳县| 焦作市| 剑川县| 汝州市| 定陶县| 界首市| 时尚| 博爱县| 长武县| 潞城市| 和政县| 板桥市| 张家港市| 彩票| 南通市| 江源县| 手机| 宜君县| 荣成市| 尖扎县| 滦平县| 天长市| 修文县| 斗六市| 岳普湖县| 城口县| 贵州省| 黄梅县| 仙桃市| 长乐市| 齐齐哈尔市| 普兰店市| 东乌珠穆沁旗| 贡觉县| 九寨沟县| 金昌市| 大安市| 虹口区| 敖汉旗| 新沂市| 莎车县|