练52.3 插队
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.
说明
有个人,每个人都有自己的编号,他们排成一个队列。现在一个编号为的人要插到第人(不是编号为)后面,求插入后的队列顺序。
输入格式
第一行输入,第二行输入个数,表示原先的队伍顺序。()
第三行输入两个数,。
输出格式
输出一行,为插入后的队列顺序。
样例
5
1 2 3 4 5
2 71 2 7 3 4 5
2024021901
- Status
 - Done
 - Rule
 - ACM/ICPC
 - Problem
 - 10
 - Start at
 - 2024-2-19 17:00
 - End at
 - 2024-2-19 18:30
 - Duration
 - 1.5 hour(s)
 - Host
 - Partic.
 - 11