3147: vector-在开头插入元素
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:9
Solved:7
Description
先输入 n 个整数存入 vector,然后在开头插入一个新整数,输出插入后的所有元素。
Input
第一行 n,第二行 n 个整数,第三行要插入的值。
Output
输出一行所有元素(空格分隔)。
Sample Input Copy
3
2 3 4
1
Sample Output Copy
1 2 3 4