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

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

1035. Password (20)

2019-11-14 09:48:32
字體:
來源:轉載
供稿:網友

注意參數傳遞要引用

#include<iostream>#include<algorithm>#include<vector>#include<map> #include<string>#include<set>using namespace std;struct rec{	string name;	string pw;}; vector<rec> mod_rec;bool ismod(string &s){ 	bool flag = true;	for(int i = 0; i < s.size(); i++){		if(s[i] == '1'){			s[i] = '@';			flag = false;		}		else if(s[i] == '0'){			s[i] = '%';			flag = false;		}		else if(s[i] == 'l'){			s[i] = 'L';			flag = false;		}		else if(s[i] == 'O'){			s[i] = 'o';			flag = false;		}	}	if(flag == true) return true;	else return false;}int main(){	int n;	cin>>n;	for(int i = 0; i < n; i++){		rec a;		cin>>a.name>>a.pw;		if(!ismod(a.pw)){			mod_rec.push_back(a);		}	}	int count = mod_rec.size();	if(count == 0){		if(n == 1){			PRintf("There is %d account and no account is modified",n);		}		else{			printf("There are %d accounts and no account is modified",n);		}	}	else{		cout<<count<<endl;		for(int i = 0; i < mod_rec.size(); i++){			printf("%s %s/n",mod_rec[i].name.c_str(),mod_rec[i].pw.c_str());		}	}	return 0;} 


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 枣庄市| 视频| 隆子县| 尼木县| 昌平区| 盐源县| 新乐市| 西乌珠穆沁旗| 奉贤区| 皮山县| 萨迦县| 亳州市| 武强县| 咸阳市| 安图县| 日照市| 泸州市| 嵩明县| 金溪县| 达州市| 渑池县| 东阿县| 明星| 东丰县| 长汀县| 木里| 林州市| 汽车| 平安县| 郯城县| 宁国市| 浦江县| 东源县| 东山县| 平顶山市| 苏尼特左旗| 边坝县| 虹口区| 册亨县| 连平县| 会东县|