1041. 考试座位号(15)
来源:互联网 发布:淘宝授权书怎么弄买家 编辑:程序博客网 时间:2024/05/30 23:40
水~
// 2017/10/14 NCU // PAT-B 1053// scienceZ#include <cstdio>#include <cstring>#include <stack>#include <cctype>#include <iostream>#include <algorithm>using namespace std;char num[1010][20];int shi[1010];int zuo[1010];int bi[1010];int main(){ int n; cin >> n; for (int i = 0; i<n; i++){ cin >> num[i] >> shi[i] >> zuo[i]; bi[shi[i]] = i; } cin >> n; for (int i = 0; i<n; i++){ int c; cin >> c; printf("%s %d\n", num[bi[c]], zuo[bi[c]]); } 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)
- Java设计模式(2)之工厂模式学习总结
- Qt5对Excel表格简单、高效处理方法
- [设计]原型模式
- 【NOIP普及组2016】买铅笔——循环控制
- 19_异常
- 1041. 考试座位号(15)
- 移动架构25_设计模式六大原则三:接口隔离原则
- LINUX新建和增加SWAP分区
- 如何利用抓包工具Fiddler抓取手机的包?
- 20_IO流
- 从零开始学电脑 1.3
- 多因子模型之组合构建与优化器(上)
- SparkCore程序可能遇到的异常
- Kotlin 协程(1)