摘要: B. Gardener and the Array 思路:只要找到一个c他的每一位均在除了它的集合中出现过即可 这题T了2发,用来multiset,注意multiset大的时间复杂度是O(K + logn)k是相同元素的个数,能用map尽量用map #include <bits/stdc++.h> 阅读全文
posted @ 2023-05-13 22:40 cxy8 阅读(26) 评论(0) 推荐(0)
摘要: A #include <bits/stdc++.h> using namespace std; typedef long long LL; const int N = 60; char c[N]; void run() { scanf("%s", c + 1); int n = strlen(c + 阅读全文
posted @ 2023-05-13 14:01 cxy8 阅读(29) 评论(0) 推荐(0)