In this task, you are given a list of integers and an integer k. You need to add integer k to each element in the list and return the updated list.
One example is below.
Q: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
A: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Rationale: 14 is added to all the elements of the input list.
Q: [38, 265, 21, 89, 36, 95, 60, 281, 261, 65, 279, 163, 125, 200, 269, 267, 263, 13, 31, 187] k=11
A:
[49, 276, 32, 100, 47, 106, 71, 292, 272, 76, 290, 174, 136, 211, 280, 278, 274, 24, 42, 198]