PAT1041. 考试座位号(15) C++
来源:互联网 发布:蔡司三坐标测量机编程软件教程 编辑:程序博客网 时间:2024/05/29 18:32
#include <iostream>#include <string>using namespace std;int main(){ int n; string num[1001]; int seat1[1001],seat2[1001]; cin>>n; for(int i=0;i<n;i++) { cin>>num[i]>>seat1[i]>>seat2[i]; } int m,s[1001]; cin>>m; for(int i=0;i<m;i++) { cin>>s[i]; } for(int i=0;i<m;i++) { for(int j=0;j<n;j++) { if(s[i]==seat1[j]){ cout<<num[j]<<" "<<seat2[j]<<endl; } } } return 0;}
阅读全文
0 0
- pat1041. 考试座位号(15)
- PAT1041考试座位号(15)
- pat1041考试座位号
- PAT1041考试座位号
- pat1041:考试座位号
- PAT1041. 考试座位号(15) C++
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- 1041. 考试座位号(15)
- Python实现Pat 1034. Head of a Gang (30)
- python--leetcode598. Range Addition II
- oracle数据库sql语句06 join
- tensorflow系列1:两种方式优化损失函数
- MySQL的CURD
- PAT1041. 考试座位号(15) C++
- oracle数据库sql语句07 PL SQL程序结构
- oracle数据库sql语句08 PL SQL程序结构 循环 游标
- 第一章 基础知识
- oracle数据库sql语句09 PL SQL程序结构 异常
- 利用yum安装Redis的方法详解_Redis
- Python面向对象之定义类和使用类
- 浮点型数据在内存中的存储
- oracle数据库sql语句10 存储过程