随笔分类 -  STL

摘要:treeset为有序的集合,不含重复元素且有序 import java.util.*;//引用全部 public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 阅读全文
posted @ 2021-03-25 18:12 漂流海上的草帽 阅读(205) 评论(0) 推荐(0)
摘要:直接上代码: #include <iostream> #include <set> using namespace std; int N; set<int> s; int main() { int a; while (cin >> N) { for (int i = 0; i < N; i++) { 阅读全文
posted @ 2021-03-25 18:01 漂流海上的草帽 阅读(209) 评论(0) 推荐(0)