[Beginner-08]查询成绩
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Background
Description
美丽的杨老师把@的成绩储存在了一个表格里面,查询成绩时@只需要输入第几次考试的编号就可以得到他的成绩了。
Format
Input
第一行两个数据,分别为考试次数 和查询次数 。
接下来的一行有 个数,代表@每次考试的成绩。
接下来 行,每行一个数字 代表查询第 次考试成绩。
Output
针对每一个询问,输出一个数 表示成绩。
Samples
5 3
1 3 5 7 9
2
3
1
3
5
1
[Rated]2025/07/19 新生课前测
- Status
- Done
- Rule
- Ledo
- Problem
- 5
- Start at
- 2025-7-19 7:42
- End at
- 2025-7-19 9:00
- Duration
- 1.3 hour(s)
- Host
- Partic.
- 22