L1-005. 考试座位号
来源:互联网 发布:java 微信支付api 编辑:程序博客网 时间:2024/05/17 04:41
//注意准考证号是大数#include <iostream>#include <string>using namespace std;const int MAX=1000;struct student{ string number; int num1; int num2;}stu[MAX];int main(){ int N,M,st[MAX]; cin>>N; for(int i=0;i<N;i++) { cin>>stu[i].number >>stu[i].num1 >>stu[i].num2; } cin>>M; for(int i=0;i<M;i++) { cin>>st[i]; } for(int i=0;i<M;i++) { for(int j=0;j<N;j++) { if(st[i]==stu[j].num1) cout<<stu[j].number<<" " <<stu[j].num2<<endl; } } return 0;}
阅读全文
0 0
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号
- L1-005. 考试座位号(C++)
- [C++]L1-005. 考试座位号
- CISC RISC ARM MIPS区别与联系
- IMWeb提升营Day3 | 训练题18:二叉树的镜像
- Kubernetes Scheduler源码分析--启动过程与多队列缓存
- 启动虚拟机错误 Transport(VMDB) error -44:Message
- Mayor's posters
- L1-005. 考试座位号
- idea创建项目报错 -Dmaven.multiModuleProjectDirectory system property is not
- 计算导论与C语言基础week8
- ubuntu 16.04 常用命令
- Android知识点小结
- matlab笔记(1)----基础
- Static allocator 3
- git rebase
- 智慧楼宇篇 1 —— 室内定位技术(一)