首页 > 小红的不动点分配
头像 Drink0318
发表于 2025-12-09 14:45:46
import sys from collections import Counter n = int(input()) lst = list(map(int,input().split())) # 统计每个数字的出现次数 counter = Counter(lst) res=0 for key,va 展开全文
头像 ddb酱
发表于 2025-11-17 10:54:49
#include <bits/stdc++.h> using namespace std; #define endl "\n" using vi = vector<int>; using msi = multiset<int>; void s 展开全文
头像 l_ss
发表于 2025-11-28 00:39:23
#include <bits/stdc++.h> using namespace std; map<int, int>mp; int main() { int n; cin >> n; vector<int>a(2 * n + 展开全文
头像 牛客用户098471297
发表于 2025-11-28 08:46:27
#include<bits/stdc++.h> using namespace std; #define int long long #define endl '\n' #define quick ios::sync_with_stdio(false);cin.tie(0);cout.t 展开全文
头像 Herman欧y
发表于 2026-01-07 16:08:55
#include <bits/stdc++.h>//我们知道一个数字只能分配到一个数组里面,由于两组内部的顺序均可任意重排,所以我们只要关心这个数字的出现次数,如果大于等于二我就能产生2个不动点,如果等于1只能产生一个 using namespace std; int main() { 展开全文
头像 tartarns_yan
发表于 2025-12-08 08:22:05
#include <bits/stdc++.h> using namespace std; int a[400005]; map<int, int>mapp; int main() { int n, res = 0; cin >> n; f 展开全文
头像 xhhmll
发表于 2026-01-02 19:16:24
#include <iostream> #include <vector> using namespace std; /*由于读入多个相同的数中,最多两个起作用, 给读入的数打上标记,再跟2比较进行统计就好了 */ int main() { int n; cin 展开全文
头像 自由的风0450
发表于 2025-11-26 12:57:10
#include <iostream> #include<vector> #include<unordered_map> using namespace std; int main() { ios::sync_with_stdio(false); 展开全文