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

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

PAT 1035. Password

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

https://www.patest.cn/contests/pat-a-PRactise/1035 純模擬 做做水題 陶冶情操 反正我也不會做難題了 = =

#include <bits/stdc++.h>using namespace std;int main(){ int N; scanf("%d/n", &N); vector<pair<string, string> > ans; for (int i = 0; i < N; i++) { string accout, pwd; cin >> accout >> pwd; bool flag = true; for (int i = 0; i < pwd.size(); i++) { if (pwd[i] == '1') pwd[i] = '@', flag = false; else if (pwd[i] == '0') pwd[i] = '%', flag = false; else if (pwd[i] == 'l') pwd[i] = 'L', flag = false; else if (pwd[i] == 'O') pwd[i] = 'o', flag = false; } if (!flag) { ans.push_back(make_pair(accout, pwd)); } } if (ans.size() == 0) { if (N == 1) { cout << "There is 1 account and no account is modified" << endl; } else cout << "There are " << N << " accounts and no account is modified" << endl; } else { cout << ans.size() << endl; for (auto e : ans) { cout << e.first << ' ' << e.second << endl; } }}
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 古浪县| 吴川市| 抚远县| 江北区| 玉环县| 金门县| 察隅县| 库伦旗| 渭南市| 上饶市| 开封市| 宁都县| 凤冈县| 贵定县| 柳州市| 驻马店市| 山西省| 靖远县| 南漳县| 潞城市| 安丘市| 乌拉特后旗| 芒康县| 吉林省| 昌宁县| 平南县| 衡阳县| 邵阳县| 德安县| 千阳县| 武冈市| 苏尼特左旗| 台江县| 冀州市| 西贡区| 临西县| 新竹县| 海门市| 百色市| 百色市| 来宾市|