主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
专业课程
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
我能走到对岸吗
2024年5月5日 23:56
查找学生信息2(结构体数组) 题解:
P1476
回复 0
|
赞 1
|
浏览 45
#include <bits/stdc++.h> using namespace std; const int N = 1010; int n, m; struct student{ string id; string name; string gender; int age; }s[N]; int main() { cin >> n; for(int i = 1; i <= n; i ++) cin >> s[i].id >> s[i].name >&g...
zx142407789
2024年3月20日 18:14
查找学生信息2 题解:运行超时通过率33%
P1476
回复 2
|
赞 0
|
浏览 311
#include<stdio.h> #include<string.h> #include<stdlib.h> typedef struct { char number[5]; char name[50]; char sex[50]; int age; }student; void search(student *list,int n, char* s) { for (int i = 0; i < n; i++) { if (strcmp(list[i].number, s) == 0) { p...
15240928957
2024年3月16日 12:47
查找学生信息2 题解:只对了33%,求教
P1476
回复 5
|
赞 0
|
浏览 406
#include <iostream> #include <map> #include <string.h> using namespace std; struct student { char id[10], name[10], sex[10],age[10]; }; student stu[1000]; map<string, student>m; int main() { int n; &...
easymoney
2024年3月16日 10:51
查找学生信息2 题解:
P1476
回复 0
|
赞 1
|
浏览 248
#include <stdio.h> #include <algorithm> #include <iostream> #include <map> using namespace std; struct student{ string num; string name; string sex; int age; }; int main(){ ...
Cookie‘s AE86
2024年3月16日 09:23
查找学生信息2 题解:c++ map实现
P1476
回复 0
|
赞 0
|
浏览 183
#include<bits/stdc++.h> using namespace std ; struct node { string id ; string name ; string sex ; string age ; } ; int main() { int n ; cin >> n ; node tmp ; map <string ,node> students ; for(int i = 0 ;i < n ;i++){ ...
williams
2024年3月14日 19:35
查找学生信息2 题解:c
P1476
回复 2
|
赞 0
|
浏览 331
#include <stdio.h> #include <string.h> struct student{ int age; char num[5],name[20],sex[20]; }; int main(){ int n,m; scanf("%d",&n); struct student student[n+1]; for(int i=0;i<n;i++) scanf("%s %s %s %d",student[i].num,student[i].name,stu...
promising
2024年3月8日 21:39
查找学生信息2 题解:
P1476
回复 0
|
赞 0
|
浏览 194
#include<stdio.h> #include<string.h> int main() { typedef struct stu { char id[10];//学号如果用int之类的数组存放的话 02 的0 会被吞掉 所以要用char char name[10]; ...
小王桐学
2024年2月6日 15:30
查找学生信息2 题解:C
P1476
回复 0
|
赞 0
|
浏览 384
#include <stdio.h> #include <string.h> #define M 10000 #define N 1000 typedef struct{ char num[10]; char s[10]; char sex[10]; int age; }Student; int main() { Student stu[N]; int n,m,i,j; char t[M][10]; scanf("%d",&n); for(i = 0; i < n; i++) sca...
孙某人
2024年1月18日 23:10
查找学生信息2 题解:易错点总结
P1476
回复 0
|
赞 1
|
浏览 374
#include<iostream> #include <string.h> using namespace std; int main(){ struct cc{ char a[10]; char b[10]; char c[10]; int d; }cc1[1000]; int m=0,n=0; char e[10000][10]; for(int i=0;i<10000;i++) for(int j=0;j<10;j++) e[i][j]=0; for(int i...
peterzhou
2023年7月12日 21:58
查找学生信息2 题解:
P1476
回复 0
|
赞 2
|
浏览 673
#include <bits/stdc++.h> using namespace std; struct student{ string num; string name; string sex; int age; }; int main() { int N,M; map<string,student>s; while( cin>>N)...
1
2
题目
查找学生信息2
题解数量
13
发布题解
热门题解
1
c
2
查找学生信息2 题解:
3
查找学生信息2 题解:
4
查找学生信息2 题解:易错点总结
5
查找学生信息2(结构体数组) 题解:
6
map
7
查找学生信息2 题解:c++ map实现
8
查找学生信息2 题解:只对了33%,求教
9
查找学生信息2 题解:
10
查找学生信息2 题解:C