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

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

PAT 1035. Password

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

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; } }}
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 武功县| 乌苏市| 津市市| 大余县| 且末县| 资源县| 乌兰察布市| 基隆市| 偃师市| 安泽县| 平顺县| 福鼎市| 阳新县| 三门峡市| 伊金霍洛旗| 莱阳市| 云和县| 繁昌县| 安徽省| 黄大仙区| 长春市| 乐陵市| 凤山市| 来宾市| 嘉荫县| 增城市| 永登县| 二连浩特市| 深水埗区| 灵石县| 修文县| 郓城县| 天水市| 康平县| 交城县| 富民县| 栾川县| 大厂| 永州市| 铁岭市| 合作市|