1041. 考试座位号(15)
来源:互联网 发布:ubuntu打开文件夹命令 编辑:程序博客网 时间:2024/06/05 00:08
#include<iostream>using namespace std;struct PAT{ char num[15]; int set_try; int set_exam;};int main(){ struct PAT *stu; int N=0,M=0,i=0,temp=0; scanf("%d",&N); stu = (struct PAT *)malloc(sizeof(struct PAT)*N); i=0; while(i<N) { scanf("%s %d %d",stu[i].num,&stu[i].set_try,&stu[i].set_exam); i++; } scanf("%d",&M); while(M--) { scanf("%d",&temp); for(i=0; i<N; i++) if(stu[i].set_try == temp) printf("%s %d\n",stu[i].num,stu[i].set_exam); } return 0;}
0 0
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- HDU 1020 Encoding
- POJ 3468 A Simple Problem with Integers
- 1040. 有几个PAT(25)
- Jquery总体架构
- C++的move语义真的没那么可怕啦
- 1041. 考试座位号(15)
- linux 命令大全,不知道的朋友,过来看吧
- 1042. 字符统计(20)
- 全栈工程师之路-中级篇之小程序开发-第一章第二节注册小程序和开发工具讲解
- POJ 1144 Network 笔记
- 1043. 输出PATest(20)
- 将博客搬至CSDN
- 写了一个小工程——技术思考
- 1044. 火星数字(20)