2021年9月12日

1062 最简分数 (20 point(s))

摘要: // 2 points #include <bits/stdc++.h> using namespace std; int gcd(int a, int b){ return b ? gcd(b, a % b) : a; } int main() { int n1, m1, n2, m2, k; s 阅读全文

posted @ 2021-09-12 23:29 Atl212 阅读(81) 评论(0) 推荐(0)

1073 多选题常见计分法 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; struct Question{ double score, num, cor; set<char> copt; map<char, int> fault; }; int main() { // 输入 学生人 阅读全文

posted @ 2021-09-12 16:03 Atl212 阅读(59) 评论(0) 推荐(0)

2021年9月11日

1074 宇宙无敌加法器 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int change(string& str){ int tmp = str[str.size()-1] - '0'; str.erase(str.size()-1, 1); return tmp; } bo 阅读全文

posted @ 2021-09-11 23:16 Atl212 阅读(92) 评论(0) 推荐(0)

2021.9.11PAT乙级考试记录

摘要: 今天考了乙级,得了83分。因为假期还是太摸了,没有做完全部习题,所以奔着把样例都尽量过了。确实把样例都过了。中间第三题开始不太看得明白,把其他都写了之后重新看了看才过了样例。 不过重新写第三题的时候只剩一小时,过了该题样例后只剩半小时,当时还有1 3 4 题目被卡了测试点。 第一个题本来想用打表的, 阅读全文

posted @ 2021-09-11 20:42 Atl212 阅读(102) 评论(0) 推荐(0)

2021年9月10日

1072 开学寄语 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { int n, m, s = 0, t = 0; set<string> unlegal; cin >> n >> m; while(m--){ string str; cin >> 阅读全文

posted @ 2021-09-10 23:00 Atl212 阅读(57) 评论(0) 推荐(0)

1071 小赌怡情 (15 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { int T, K, n1, b, t, n2, x; cin >> T >> K; // 初始化当前筹码 x = T; while(K--){ cin >> n1 >> b >> t 阅读全文

posted @ 2021-09-10 22:22 Atl212 阅读(24) 评论(0) 推荐(0)

2021年9月8日

1060 爱丁顿数 (25 point(s))

摘要: // 18 points #include <bits/stdc++.h> using namespace std; int main() { int n, days = 0; // key存储距离 val存储距离累积的天数 map<int , int> E; cin >> n; while(n-- 阅读全文

posted @ 2021-09-08 17:46 Atl212 阅读(155) 评论(0) 推荐(0)

1068 万绿丛中一点红 (20 point(s))

摘要: // 16 points #include <bits/stdc++.h> using namespace std; struct Loction{ int i, j; }; int main() { // N行 M列 图像 分辨率 TOL 所求像素点与相邻点的颜色差阈值 int m, n, TOL 阅读全文

posted @ 2021-09-08 07:59 Atl212 阅读(38) 评论(0) 推荐(0)

2021年9月7日

1067 试密码 (20 point(s))

摘要: // 13 points #include <bits/stdc++.h> using namespace std; int main() { string pass, check; int N; cin >> pass >> N; while(cin >> check){ if(check == 阅读全文

posted @ 2021-09-07 17:48 Atl212 阅读(51) 评论(0) 推荐(0)

1066 图像过滤 (15 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { int m, n, a, b, grey; cin >> m >> n >> a >> b >> grey; // 读取 int pic[m][n]; for(int i = 0; 阅读全文

posted @ 2021-09-07 12:38 Atl212 阅读(33) 评论(0) 推荐(0)

导航