#abc361a. A - Insert
A - Insert
Score : points
问题陈述
给定一个长度为 的整数序列 以及整数 和 。
打印出通过在序列 的第 个元素之后立即插入整数 得到的整数序列 。
以上为大语言模型 kimi 翻译,仅供参考。
Problem Statement
You are given an integer sequence of length and integers and .
Print the integer sequence obtained by inserting the integer immediately after the -th element of the sequence .
Constraints
- All input values are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the integer sequence obtained by inserting the integer immediately after the -th element of the sequence , in the following format:
Sample Input 1
4 3 7
2 3 5 11
Sample Output 1
2 3 5 7 11
For , , and , we get .
Sample Input 2
1 1 100
100
Sample Output 2
100 100
Sample Input 3
8 8 3
9 9 8 2 4 4 3 5
Sample Output 3
9 9 8 2 4 4 3 5 3