随笔分类 -  PTA数据结构习题集

摘要:这一题知识点与7-14基本上是一样的,都是用的散列。 AC的代码: //将QQ号的类型从数字型改为字符串型后,成功AC。 #include <iostream> #include <string> #include <cstring> using namespace std; long N; typ 阅读全文
posted @ 2020-03-01 10:24 幻想Elapse 阅读(983) 评论(0) 推荐(0)
摘要:#include <iostream> #include <string> #include <cstring> using namespace std; int max_ = 0;//每当count增加时,就判断此时增加后的count是不是最大,max_存储当前最大值 int f = 0;//标志 阅读全文
posted @ 2020-02-29 22:44 幻想Elapse 阅读(362) 评论(0) 推荐(0)