首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
HKX9XAS
2026年3月18日 22:25
查找学生信息 题解:用数组记录i号人喜欢什么书,用map容器记录那本书
P1177
回复 1
|
赞 10
|
浏览 157
#include<stdio.h> #include<string> #include<string.h> #include<iostream> #include<map> using namespace std; int main(){ int n,m; while(cin>>n>>m){ int* readers = new ...
konyy5371
2026年3月18日 15:02
查找学生信息 题解:
P1177
回复 0
|
赞 0
|
浏览 53
#include<bits/stdc++.h> using namespace std; int main() { int n, m; while(cin >> n >> m){ vector<int> arr1, arr2(m+1, 0); while (n--) { int k; cin >> k; arr1.push_back(k); arr2[k]++; } for (int a : arr1) { int num; ...
ZeroQi_404
2026年3月17日 21:45
查找学生信息 题解:
P1177
回复 0
|
赞 0
|
浏览 68
#include<iostream> using namespace std; int main(){ int n,m; while(cin >> n >> m){ int a[205]; int cnt[205]={0}; for(int i=0;i<n;i++){ cin >> a[i]; cnt[a[i]]++; } for(int i=0;i<n;i++){ if(cnt[a[i]]==1){ cout <&l...
彻底死去
2026年3月15日 19:24
查找学生信息 题解:
P1177
回复 0
|
赞 3
|
浏览 87
#include<iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<string> #include<cstring> using namespace std; int main() { int n, m; while (cin >> n >> m) { int arr[200] = { 0 }, brr[200] = { 0 }, inde...
太一
2026年3月14日 23:11
查找学生信息 题解:
P1177
回复 0
|
赞 1
|
浏览 86
#include<iostream> #include<cmath> #include<algorithm> #include<string> using namespace std; int main() { int n, m, arr[1000]; while (cin >> n >> m) { int brr[1000] = { 0 }; &...
yauqq
2026年3月14日 15:22
查找学生信息 题解:
P1177
回复 0
|
赞 3
|
浏览 61
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; while(cin >> n >> m){ vector<int> likes(n + 1); // 下标从1到n,存储第i个读者喜欢的书的编号 // 用 map 统计每本书被多少读者喜欢 // key: 书号, value: 喜欢这本书的读者人数 unordered_map<int, int> bookCoun...
官wy
2026年3月12日 11:25
查找学生信息 题解:
P1177
回复 0
|
赞 5
|
浏览 139
那这个m的意义是什么,我还以为要限制范围 #include <bits/stdc++.h> using namespace std; int main(){ int n,m; int sum[200]; while(scanf("%d",&n)!=EOF){ scanf("%d",&m); map<int,int>M;  ...
Cat111
2026年3月10日 15:12
查找学生信息 题解:
P1177
回复 0
|
赞 4
|
浏览 143
#include <bits/stdc++.h> using namespace std; int main(){ int N, m; while(scanf("%d %d",&N,&m)!=EOF){ map<int,int> M; int a[1000]; for(int i=0;i<N;i++){ scanf("%d",&a[i]); M[a[i]]++; ...
Jinx_K
2026年3月10日 13:07
查找学生信息 题解:map<int,int> easily solve
P1177
回复 0
|
赞 3
|
浏览 93
#include <bits/stdc++.h> using namespace std; int main() { int N,M; int record[200];//record the reader while(cin>>N>>M) { map<int,int> list;//key equals book number,value equals how many ppl likes it for(int i=0;i<N;i++) { int book; cin&...
上岸啊641
2026年3月10日 11:52
查找学生信息 题解:
P1177
回复 0
|
赞 0
|
浏览 64
#include <bits/stdc++.h>//2.7-1177 using namespace std; int main() { int n,m; while(cin>>n>>m) { vector<int>bookcount(m+1,0);//统计喜欢每本图书的读者个数 &nbs...
1
2
3
...
5
题目
查找学生信息
题解数量
47
发布题解
在线答疑
热门题解
1
map解法
2
查找学生信息 题解:带有注释的C++题解
3
查找学生信息 题解:map
4
查找学生信息 题解:
5
查找学生信息 题解:
6
查找学生信息 题解:暴力至高(map)
7
查找学生信息 题解:用数组记录i号人喜欢什么书,用map容器记录那本书有几个人喜欢
8
查找学生信息 题解:
9
查找学生信息 纯C题解:
10
查找学生信息 题解: