PAT甲级
gingerCat1123
这个作者很懒,什么都没留下…
展开
-
2019春季PAT甲级3和4题解
教育超市买了一套,1、2忘本地存了。prime和静态链表,较为简单。 3 电信诈骗 一开始没用DFS,每个团体存储的只是查询点的邻近点,有一个6分的测试点过不去。 #include <iostream> #include <vector> #include <cmath> #include <string> #include <cstring> #include <cctype> #include <map> #includ原创 2020-09-04 22:05:30 · 113 阅读 · 0 评论 -
20200725 PAT甲级 7-2 The Judger (25分)
#include <iostream> #include <vector> #include <cmath> using namespace std; int exist[100010]={0}, diff[100010] = {0}; // exist记录已经报过的数,diff记录已经报过的数的差值 vector<int> exists; // exists记录已经报过的数,对于每个新报的数,和每个已存的数相减得差 int ht[15] = {0}; i原创 2020-07-25 20:34:49 · 591 阅读 · 2 评论