PAT-1041 考试座位号
来源:互联网 发布:linux 查看系统时区 编辑:程序博客网 时间:2024/06/06 02:33
#include <iostream>#include <cstdio>#include <cstring>#include <cmath>#include <iomanip>using namespace std;struct Student{ char num[20]; int shi; int kao;}stu[1000+10];int main(){ //freopen("in.txt", "r", stdin); //freopen("out.txt", "w", stdout); int n = 0; cin >> n; for (int i = 0; i < n; i++) cin >> stu[i].num >> stu[i].shi >> stu[i].kao; int m = 0; cin >> m; while (m--) { int t; cin >> t; for (int i = 0; i < n; i++) if (stu[i].shi == t) cout << stu[i].num << " " << stu[i].kao << endl; } return 0;}
0 0
- PAT-1041 考试座位号
- 1041,考试座位号,PAT
- PAT 1041考试座位号
- PAT 1041 考试座位号
- pat-考试座位号
- PAT乙级1041 考试座位号
- PAT乙级1041 考试座位号
- PAT 1041. 考试座位号
- PAT B1041. 考试座位号
- PAT(basic level) 1041 考试座位号(15)
- 1041 考试座位号
- 1041 考试座位号
- 1041 考试座位号
- 1041 考试座位号
- 【PAT】1041. 考试座位号(15)
- PAT (Basic Level)1041. 考试座位号
- PAT-B 1041. 考试座位号
- Java - PAT - 1041. 考试座位号(15)
- 一个搜索文件的APP(2)-搜索功能的实现
- [BZOJ3091] 城市旅行
- ORA-02287:此处不允许序号(sequence number not allowed here) 的避免以及强制实现
- 冒泡排序
- linux学习笔记一_man中最后一行括号里的数字
- PAT-1041 考试座位号
- 微信的那个老外产品经理,又写了一篇《中国移动应用设计趋势》
- 死锁-1.0.1
- I/O复用——select系统调用
- 传智播客168期JavaEE就业班(第十天 request response)
- javaScript学习笔记(六)
- 常用的一些api
- 在Android Studio使用自定义属性
- 【hdu1198】Farm Irrigation——并查集