首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
曾不会
2026年2月4日 21:18
分组统计 题解:
P1448
回复 0
|
赞 0
|
浏览 29
n=int(input()) for ii in range(n): m=int(input()) num=list(map(int,input().split())) group=list(map(int,input().split())) s=[] ss=[] for i in group: if i not in s: s.append(i) # print(s) for i in num: if i not in ss: ...
18919717626
2025年3月20日 15:02
分组统计 题解:
P1448
回复 0
|
赞 2
|
浏览 942
#include<iostream> #include<map> #include<set> #include<iomanip> #include<vector> #include<string> using namespace std; int main(){ int m; cin>>m; while(m--){  ...
yanmy
2024年3月27日 15:19
充分利用容器特性
P1448
回复 0
|
赞 4
|
浏览 1.3k
#include <iostream> #include <map> #include <vector> #include <set> using namespace std; int main() { int m; cin >> m; while (m--) { int n, t; cin >> n; map<int, vector<int>> mp; set<...
My_opt
2022年4月30日 17:01
c++
P1448
回复 0
|
赞 3
|
浏览 5.5k
#include <iostream> using namespace std; const int N = 1e5 + 10; int m, n, x, a[N], map[110][N]; int c[N]; int main() { cin >> m; while (m -- ) { cin >> n; for (int i = 1; i <= n; i ++ ) { cin >> a[i]; map[0][a[i]] ++; } int p ...
A1120161820
2020年3月8日 11:19
分组统计(c++)
P1448
回复 0
|
赞 4
|
浏览 10.3k
#include<iostream> #include<cstdlib> using namespace std; int main() { int m; cin >> m; while (m--) { int n; cin >> n; int* anum = new int[n];//存数 int* agrp = new int[n];//存组 int maxn = -1, maxg = -1;//存最大数和最大组 for (int i = 0; i < n; i++...
题目
分组统计
题解数量
5
发布题解
在线答疑
热门题解
1
分组统计(c++)
2
充分利用容器特性
3
c++
4
分组统计 题解:
5
分组统计 题解: