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


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 镇宁| 镇康县| 邹城市| 米泉市| 麻栗坡县| 庆阳市| 麟游县| 马龙县| 革吉县| 章丘市| 桑植县| 柳河县| 孟州市| 武威市| 怀安县| 咸丰县| 咸宁市| 高州市| 平遥县| 杂多县| 安仁县| 淮北市| 灯塔市| 固原市| 溆浦县| 伊金霍洛旗| 桦甸市| 杭锦后旗| 大理市| 新干县| 县级市| 新乡市| 明光市| 盐城市| 方正县| 东光县| 鲁甸县| 亚东县| 类乌齐县| 呼伦贝尔市| 张掖市|