摘要: 只得了20分,错误原因应该是时间复杂度的问题。 set::count()是C++ STL中的内置函数,它返回元素在集合中出现的次数。由于set容器仅包含唯一元素,因此只能返回1或0。 #include<bits/stdc++.h> using namespace std; const int N=1 阅读全文
posted @ 2021-03-27 11:57 Tomorrow1126 阅读(156) 评论(0) 推荐(0) 编辑