2021年8月25日

PAT (Basic Level) 1033 旧键盘打字 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { string bad, good; getline(cin, bad); getline(cin, good); for(int i = 0; i < good.size(); i+ 阅读全文

posted @ 2021-08-25 22:56 Atl212 阅读(37) 评论(0) 推荐(0)

PAT (Basic Level) 1032 挖掘机技术哪家强 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; map<int, int> school; for(int i = 0; i < n; i++) { int num, score; cin >> 阅读全文

posted @ 2021-08-25 21:39 Atl212 阅读(29) 评论(0) 推荐(0)

PAT (Basic Level) 1031 查验身份证 (15 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { int n, allPassed = true, weight[17]{7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2}; c 阅读全文

posted @ 2021-08-25 21:14 Atl212 阅读(45) 评论(0) 推荐(0)

导航