inputs stringlengths 243 743 | targets stringlengths 89 110 | _template_idx int64 0 9 | _task_source stringclasses 1
value | _task_name stringclasses 1
value | _template_type stringclasses 2
values |
|---|---|---|---|---|---|
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.
Ex Input:
[144, 162, 35, 236, 245, 120, 209, 286, 180, 242, 14, 125, 235, 158, 106, 270, 89, 108, 223, 200] k=1
Ex Output:
[145, 163, 36, 237, 246, 121, 210, 287, 181, 243, 15, 126, 236, 159, 107, 271, 90, 109, 224, 201]
Ex Input:
[242, 108, 230, 234, 239, 238, 12, 265, 231, 166, 172, 153, 200, 183, 87, 38, 57, 177, 93, 20] k=17
Ex Output:
[259, 125, 247, 251, 256, 255, 29, 282, 248, 183, 189, 170, 217, 200, 104, 55, 74, 194, 110, 37]
Ex Input:
[241, 81, 65, 116, 251, 296, 130, 90, 213, 217, 269, 142, 220, 109, 132, 231, 291, 153, 216, 243] k=1
Ex Output:
| [242, 82, 66, 117, 252, 297, 131, 91, 214, 218, 270, 143, 221, 110, 133, 232, 292, 154, 217, 244]
| 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Example solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Example explanation: 14 is added to all the elements of the input list.
Problem: [279, 212, 70, 179, 59, 40, 185, 12, 107, 93, 73, 231, 149, 220, 20, 273, 17, 55, 102, 64] k=20
| Solution: [299, 232, 90, 199, 79, 60, 205, 32, 127, 113, 93, 251, 169, 240, 40, 293, 37, 75, 122, 84] | 5 | NIv2 | task1190_add_integer_to_list | fs_opt |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Reason: 14 is added to all the elements of the input list.
Now, solve this instance: [35, 14, 205, 188, 241, 200, 47, 297, 121, 20, 246, 230, 157, 199, 174, 206, 159, 208, 72, 22] k=5
Student: | [40, 19, 210, 193, 246, 205, 52, 302, 126, 25, 251, 235, 162, 204, 179, 211, 164, 213, 77, 27] | 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Example solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Example explanation: 14 is added to all the elements of the input list.
Problem: [62, 108, 104, 30, 91, 258, 16, 10, 174, 206, 111, 25, 23, 131, 292, 160, 78, 28, 55, 141] k=9
| Solution: [71, 117, 113, 39, 100, 267, 25, 19, 183, 215, 120, 34, 32, 140, 301, 169, 87, 37, 64, 150] | 5 | NIv2 | task1190_add_integer_to_list | fs_opt |
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: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution is here: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Explanation: 14 is added to all the elements of the input list.
Now, solve this: [245, 105, 236, 27, 180, 73, 83, 71, 162, 56, 172, 235, 267, 151, 122, 50, 171, 62, 58, 150] k=7
Solution: | [252, 112, 243, 34, 187, 80, 90, 78, 169, 63, 179, 242, 274, 158, 129, 57, 178, 69, 65, 157] | 6 | NIv2 | task1190_add_integer_to_list | fs_opt |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Reason: 14 is added to all the elements of the input list.
Now, solve this instance: [275, 287, 291, 197, 119, 145, 79, 46, 123, 66, 133, 115, 262, 130, 105, 272, 125, 253, 83, 290] k=12
Student: | [287, 299, 303, 209, 131, 157, 91, 58, 135, 78, 145, 127, 274, 142, 117, 284, 137, 265, 95, 302] | 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
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: [101, 49, 13, 217, 171, 107, 55, 204, 142, 184, 109, 265, 126, 219, 90, 103, 199, 21, 69, 114] k=13
A: | [114, 62, 26, 230, 184, 120, 68, 217, 155, 197, 122, 278, 139, 232, 103, 116, 212, 34, 82, 127] | 9 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example Input: [94, 70, 253, 192, 24, 62, 95, 112, 182, 14, 256, 179, 171, 217, 245, 249, 141, 251, 92, 213] k=12
Example Output: [106, 82, 265, 204, 36, 74, 107, 124, 194, 26, 268, 191, 183, 229, 257, 261, 153, 263, 104, 225]
Example Input: [23, 190, 61, 247, 215, 140, 59, 80, 265, 120, 28, 98, 131, 198, 104, 151, 76, 158, 139, 22] k=17
Example Output: [40, 207, 78, 264, 232, 157, 76, 97, 282, 137, 45, 115, 148, 215, 121, 168, 93, 175, 156, 39]
Example Input: [234, 177, 138, 76, 134, 148, 94, 152, 67, 209, 85, 229, 93, 204, 279, 220, 55, 184, 13, 290] k=16
Example Output: | [250, 193, 154, 92, 150, 164, 110, 168, 83, 225, 101, 245, 109, 220, 295, 236, 71, 200, 29, 306]
| 3 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[57, 229, 155, 238, 98, 106, 216, 96, 123, 48, 59, 191, 268, 166, 158, 126, 28, 149, 73, 168] k=3
[60, 232, 158, 241, 101, 109, 219, 99, 126, 51, 62, 194, 271, 169, 161, 129, 31, 152, 76, 171]
[211, 155, 266, 85, 192, 221, 249, 198, 275, 205, 195, 185, 91, 280, 232, 87, 124, 271, 75, 55] k=16
[227, 171, 282, 101, 208, 237, 265, 214, 291, 221, 211, 201, 107, 296, 248, 103, 140, 287, 91, 71]
[100, 291, 199, 245, 247, 104, 162, 15, 99, 166, 56, 154, 152, 86, 219, 13, 132, 171, 124, 231] k=13
| [113, 304, 212, 258, 260, 117, 175, 28, 112, 179, 69, 167, 165, 99, 232, 26, 145, 184, 137, 244]
| 0 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example Input: [80, 161, 73, 12, 17, 277, 295, 49, 175, 241, 230, 31, 22, 40, 28, 101, 84, 289, 149, 55] k=17
Example Output: [97, 178, 90, 29, 34, 294, 312, 66, 192, 258, 247, 48, 39, 57, 45, 118, 101, 306, 166, 72]
Example Input: [135, 150, 278, 40, 157, 68, 264, 203, 285, 18, 194, 263, 75, 277, 37, 26, 188, 86, 137, 225] k=10
Example Output: [145, 160, 288, 50, 167, 78, 274, 213, 295, 28, 204, 273, 85, 287, 47, 36, 198, 96, 147, 235]
Example Input: [175, 49, 106, 250, 173, 44, 203, 221, 104, 211, 119, 181, 36, 267, 51, 289, 183, 42, 111, 196] k=8
Example Output: | [183, 57, 114, 258, 181, 52, 211, 229, 112, 219, 127, 189, 44, 275, 59, 297, 191, 50, 119, 204]
| 3 | NIv2 | task1190_add_integer_to_list | fs_opt |
TASK DEFINITION: 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.
PROBLEM: [189, 221, 49, 282, 37, 212, 158, 157, 249, 206, 218, 57, 45, 275, 113, 148, 149, 280, 116, 137] k=20
SOLUTION: [209, 241, 69, 302, 57, 232, 178, 177, 269, 226, 238, 77, 65, 295, 133, 168, 169, 300, 136, 157]
PROBLEM: [58, 281, 13, 81, 113, 27, 256, 193, 181, 215, 94, 93, 211, 277, 199, 219, 198, 51, 166, 286] k=1
SOLUTION: [59, 282, 14, 82, 114, 28, 257, 194, 182, 216, 95, 94, 212, 278, 200, 220, 199, 52, 167, 287]
PROBLEM: [74, 61, 242, 266, 128, 193, 257, 175, 36, 94, 184, 296, 295, 172, 121, 77, 221, 72, 287, 173] k=5
SOLUTION: | [79, 66, 247, 271, 133, 198, 262, 180, 41, 99, 189, 301, 300, 177, 126, 82, 226, 77, 292, 178]
| 8 | NIv2 | task1190_add_integer_to_list | fs_opt |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Reason: 14 is added to all the elements of the input list.
Now, solve this instance: [206, 43, 17, 210, 32, 18, 105, 272, 95, 179, 151, 219, 185, 257, 159, 12, 46, 186, 195, 133] k=20
Student: | [226, 63, 37, 230, 52, 38, 125, 292, 115, 199, 171, 239, 205, 277, 179, 32, 66, 206, 215, 153] | 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
Detailed Instructions: 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.
See one example below:
Problem: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Explanation: 14 is added to all the elements of the input list.
Problem: [133, 214, 218, 292, 134, 58, 199, 159, 207, 293, 211, 276, 154, 139, 127, 143, 70, 274, 232, 142] k=13
Solution: | [146, 227, 231, 305, 147, 71, 212, 172, 220, 306, 224, 289, 167, 152, 140, 156, 83, 287, 245, 155] | 4 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[25, 237, 206, 264, 205, 283, 268, 247, 100, 248, 263, 92, 64, 199, 244, 91, 132, 226, 26, 88] k=10
[35, 247, 216, 274, 215, 293, 278, 257, 110, 258, 273, 102, 74, 209, 254, 101, 142, 236, 36, 98]
[297, 271, 166, 222, 231, 16, 278, 260, 113, 243, 191, 244, 104, 232, 282, 224, 100, 32, 15, 11] k=7
[304, 278, 173, 229, 238, 23, 285, 267, 120, 250, 198, 251, 111, 239, 289, 231, 107, 39, 22, 18]
[108, 299, 71, 24, 55, 186, 288, 138, 199, 235, 249, 37, 132, 116, 163, 106, 285, 190, 206, 218] k=6
| [114, 305, 77, 30, 61, 192, 294, 144, 205, 241, 255, 43, 138, 122, 169, 112, 291, 196, 212, 224]
| 0 | NIv2 | task1190_add_integer_to_list | fs_opt |
Detailed Instructions: 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.
See one example below:
Problem: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Explanation: 14 is added to all the elements of the input list.
Problem: [37, 187, 17, 25, 100, 112, 130, 127, 52, 262, 202, 97, 16, 155, 158, 102, 28, 39, 248, 58] k=20
Solution: | [57, 207, 37, 45, 120, 132, 150, 147, 72, 282, 222, 117, 36, 175, 178, 122, 48, 59, 268, 78] | 4 | NIv2 | task1190_add_integer_to_list | fs_opt |
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: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution is here: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Explanation: 14 is added to all the elements of the input list.
Now, solve this: [132, 37, 129, 220, 291, 89, 11, 135, 212, 104, 247, 145, 146, 65, 46, 15, 42, 83, 150, 216] k=11
Solution: | [143, 48, 140, 231, 302, 100, 22, 146, 223, 115, 258, 156, 157, 76, 57, 26, 53, 94, 161, 227] | 6 | NIv2 | task1190_add_integer_to_list | fs_opt |
Part 1. Definition
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.
Part 2. Example
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Answer: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Explanation: 14 is added to all the elements of the input list.
Part 3. Exercise
[51, 26, 251, 85, 107, 105, 137, 145, 80, 191, 278, 224, 15, 66, 232, 132, 59, 68, 296, 263] k=9
Answer: | [60, 35, 260, 94, 116, 114, 146, 154, 89, 200, 287, 233, 24, 75, 241, 141, 68, 77, 305, 272] | 7 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[Q]: [94, 70, 253, 192, 24, 62, 95, 112, 182, 14, 256, 179, 171, 217, 245, 249, 141, 251, 92, 213] k=12
[A]: [106, 82, 265, 204, 36, 74, 107, 124, 194, 26, 268, 191, 183, 229, 257, 261, 153, 263, 104, 225]
[Q]: [17, 48, 260, 40, 171, 21, 152, 221, 157, 218, 86, 113, 211, 220, 44, 172, 195, 73, 83, 69] k=10
[A]: [27, 58, 270, 50, 181, 31, 162, 231, 167, 228, 96, 123, 221, 230, 54, 182, 205, 83, 93, 79]
[Q]: [51, 26, 251, 85, 107, 105, 137, 145, 80, 191, 278, 224, 15, 66, 232, 132, 59, 68, 296, 263] k=9
[A]: | [60, 35, 260, 94, 116, 114, 146, 154, 89, 200, 287, 233, 24, 75, 241, 141, 68, 77, 305, 272]
| 5 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Ex Input:
[56, 178, 13, 187, 231, 247, 11, 107, 87, 211, 220, 265, 272, 210, 134, 139, 194, 93, 162, 41] k=15
Ex Output:
[71, 193, 28, 202, 246, 262, 26, 122, 102, 226, 235, 280, 287, 225, 149, 154, 209, 108, 177, 56]
Ex Input:
[297, 271, 166, 222, 231, 16, 278, 260, 113, 243, 191, 244, 104, 232, 282, 224, 100, 32, 15, 11] k=7
Ex Output:
[304, 278, 173, 229, 238, 23, 285, 267, 120, 250, 198, 251, 111, 239, 289, 231, 107, 39, 22, 18]
Ex Input:
[55, 165, 250, 197, 99, 65, 105, 290, 273, 289, 72, 253, 144, 53, 259, 70, 146, 48, 34, 85] k=6
Ex Output:
| [61, 171, 256, 203, 105, 71, 111, 296, 279, 295, 78, 259, 150, 59, 265, 76, 152, 54, 40, 91]
| 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
--------
Question: [38, 265, 21, 89, 36, 95, 60, 281, 261, 65, 279, 163, 125, 200, 269, 267, 263, 13, 31, 187] k=11
Answer: [49, 276, 32, 100, 47, 106, 71, 292, 272, 76, 290, 174, 136, 211, 280, 278, 274, 24, 42, 198]
Question: [144, 162, 35, 236, 245, 120, 209, 286, 180, 242, 14, 125, 235, 158, 106, 270, 89, 108, 223, 200] k=1
Answer: [145, 163, 36, 237, 246, 121, 210, 287, 181, 243, 15, 126, 236, 159, 107, 271, 90, 109, 224, 201]
Question: [110, 173, 217, 81, 198, 35, 280, 101, 181, 165, 45, 222, 57, 180, 55, 272, 277, 159, 121, 218] k=10
Answer: | [120, 183, 227, 91, 208, 45, 290, 111, 191, 175, 55, 232, 67, 190, 65, 282, 287, 169, 131, 228]
| 7 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Ex Input:
[51, 26, 251, 85, 107, 105, 137, 145, 80, 191, 278, 224, 15, 66, 232, 132, 59, 68, 296, 263] k=9
Ex Output:
[60, 35, 260, 94, 116, 114, 146, 154, 89, 200, 287, 233, 24, 75, 241, 141, 68, 77, 305, 272]
Ex Input:
[94, 120, 69, 205, 103, 104, 44, 204, 100, 37, 96, 244, 61, 143, 233, 299, 224, 63, 11, 48] k=12
Ex Output:
[106, 132, 81, 217, 115, 116, 56, 216, 112, 49, 108, 256, 73, 155, 245, 311, 236, 75, 23, 60]
Ex Input:
[191, 228, 224, 66, 280, 24, 266, 56, 151, 223, 106, 256, 156, 109, 291, 197, 86, 126, 26, 87] k=13
Ex Output:
| [204, 241, 237, 79, 293, 37, 279, 69, 164, 236, 119, 269, 169, 122, 304, 210, 99, 139, 39, 100]
| 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
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: [126, 76, 184, 156, 120, 203, 269, 216, 51, 298, 254, 226, 130, 21, 28, 71, 240, 153, 123, 47] k=1
A: | [127, 77, 185, 157, 121, 204, 270, 217, 52, 299, 255, 227, 131, 22, 29, 72, 241, 154, 124, 48] | 9 | NIv2 | task1190_add_integer_to_list | fs_opt |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Reason: 14 is added to all the elements of the input list.
Now, solve this instance: [159, 223, 125, 284, 207, 173, 224, 10, 17, 127, 16, 47, 107, 41, 90, 253, 236, 222, 80, 278] k=5
Student: | [164, 228, 130, 289, 212, 178, 229, 15, 22, 132, 21, 52, 112, 46, 95, 258, 241, 227, 85, 283] | 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Ex Input:
[206, 284, 165, 175, 163, 114, 129, 92, 152, 293, 150, 40, 153, 42, 73, 173, 169, 47, 156, 75] k=7
Ex Output:
[213, 291, 172, 182, 170, 121, 136, 99, 159, 300, 157, 47, 160, 49, 80, 180, 176, 54, 163, 82]
Ex Input:
[242, 52, 134, 251, 184, 50, 23, 17, 220, 68, 104, 95, 38, 155, 58, 21, 222, 115, 16, 223] k=12
Ex Output:
[254, 64, 146, 263, 196, 62, 35, 29, 232, 80, 116, 107, 50, 167, 70, 33, 234, 127, 28, 235]
Ex Input:
[159, 223, 125, 284, 207, 173, 224, 10, 17, 127, 16, 47, 107, 41, 90, 253, 236, 222, 80, 278] k=5
Ex Output:
| [164, 228, 130, 289, 212, 178, 229, 15, 22, 132, 21, 52, 112, 46, 95, 258, 241, 227, 85, 283]
| 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example Input: [110, 173, 217, 81, 198, 35, 280, 101, 181, 165, 45, 222, 57, 180, 55, 272, 277, 159, 121, 218] k=10
Example Output: [120, 183, 227, 91, 208, 45, 290, 111, 191, 175, 55, 232, 67, 190, 65, 282, 287, 169, 131, 228]
Example Input: [245, 105, 236, 27, 180, 73, 83, 71, 162, 56, 172, 235, 267, 151, 122, 50, 171, 62, 58, 150] k=7
Example Output: [252, 112, 243, 34, 187, 80, 90, 78, 169, 63, 179, 242, 274, 158, 129, 57, 178, 69, 65, 157]
Example Input: [258, 154, 39, 66, 167, 190, 127, 189, 175, 203, 295, 290, 194, 237, 259, 31, 52, 33, 122, 277] k=13
Example Output: | [271, 167, 52, 79, 180, 203, 140, 202, 188, 216, 308, 303, 207, 250, 272, 44, 65, 46, 135, 290]
| 3 | NIv2 | task1190_add_integer_to_list | fs_opt |
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: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution is here: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Explanation: 14 is added to all the elements of the input list.
Now, solve this: [253, 65, 204, 258, 103, 280, 137, 52, 281, 23, 285, 212, 186, 22, 230, 128, 248, 147, 20, 172] k=14
Solution: | [267, 79, 218, 272, 117, 294, 151, 66, 295, 37, 299, 226, 200, 36, 244, 142, 262, 161, 34, 186] | 6 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Let me give you an example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
The answer to this example can be: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Here is why: 14 is added to all the elements of the input list.
OK. solve this:
[176, 220, 296, 214, 210, 134, 23, 219, 188, 118, 286, 12, 111, 106, 281, 89, 228, 233, 172, 160] k=14
Answer: | [190, 234, 310, 228, 224, 148, 37, 233, 202, 132, 300, 26, 125, 120, 295, 103, 242, 247, 186, 174] | 8 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Ex Input:
[244, 123, 66, 289, 274, 96, 11, 102, 173, 249, 223, 133, 110, 210, 21, 272, 230, 277, 88, 285] k=18
Ex Output:
[262, 141, 84, 307, 292, 114, 29, 120, 191, 267, 241, 151, 128, 228, 39, 290, 248, 295, 106, 303]
Ex Input:
[274, 132, 277, 297, 145, 40, 152, 298, 147, 141, 11, 259, 228, 213, 255, 284, 144, 175, 194, 32] k=5
Ex Output:
[279, 137, 282, 302, 150, 45, 157, 303, 152, 146, 16, 264, 233, 218, 260, 289, 149, 180, 199, 37]
Ex Input:
[282, 167, 60, 50, 299, 54, 228, 140, 185, 133, 212, 113, 155, 263, 269, 17, 56, 294, 274, 252] k=20
Ex Output:
| [302, 187, 80, 70, 319, 74, 248, 160, 205, 153, 232, 133, 175, 283, 289, 37, 76, 314, 294, 272]
| 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Example solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Example explanation: 14 is added to all the elements of the input list.
Problem: [293, 63, 219, 103, 72, 29, 10, 33, 113, 233, 234, 255, 154, 242, 220, 203, 208, 176, 246, 259] k=7
| Solution: [300, 70, 226, 110, 79, 36, 17, 40, 120, 240, 241, 262, 161, 249, 227, 210, 215, 183, 253, 266] | 5 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Example solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Example explanation: 14 is added to all the elements of the input list.
Problem: [233, 71, 95, 76, 205, 62, 130, 298, 288, 141, 203, 46, 30, 178, 186, 45, 282, 238, 162, 108] k=5
| Solution: [238, 76, 100, 81, 210, 67, 135, 303, 293, 146, 208, 51, 35, 183, 191, 50, 287, 243, 167, 113] | 5 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
--------
Question: [260, 42, 210, 144, 29, 129, 19, 149, 70, 15, 211, 170, 130, 104, 231, 81, 124, 158, 258, 82] k=12
Answer: [272, 54, 222, 156, 41, 141, 31, 161, 82, 27, 223, 182, 142, 116, 243, 93, 136, 170, 270, 94]
Question: [238, 167, 224, 10, 13, 20, 136, 235, 28, 266, 298, 172, 118, 41, 299, 247, 145, 107, 159, 231] k=5
Answer: [243, 172, 229, 15, 18, 25, 141, 240, 33, 271, 303, 177, 123, 46, 304, 252, 150, 112, 164, 236]
Question: [167, 138, 35, 205, 150, 64, 181, 67, 277, 195, 219, 72, 24, 293, 254, 61, 234, 289, 25, 100] k=18
Answer: | [185, 156, 53, 223, 168, 82, 199, 85, 295, 213, 237, 90, 42, 311, 272, 79, 252, 307, 43, 118]
| 7 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[EX Q]: [227, 162, 173, 289, 292, 30, 184, 169, 68, 283, 139, 76, 153, 171, 278, 73, 157, 150, 273, 105] k=19
[EX A]: [246, 181, 192, 308, 311, 49, 203, 188, 87, 302, 158, 95, 172, 190, 297, 92, 176, 169, 292, 124]
[EX Q]: [37, 187, 17, 25, 100, 112, 130, 127, 52, 262, 202, 97, 16, 155, 158, 102, 28, 39, 248, 58] k=20
[EX A]: [57, 207, 37, 45, 120, 132, 150, 147, 72, 282, 222, 117, 36, 175, 178, 122, 48, 59, 268, 78]
[EX Q]: [116, 126, 64, 174, 227, 194, 234, 134, 199, 135, 255, 153, 108, 129, 207, 193, 106, 76, 151, 105] k=11
[EX A]: | [127, 137, 75, 185, 238, 205, 245, 145, 210, 146, 266, 164, 119, 140, 218, 204, 117, 87, 162, 116]
| 6 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[86, 87, 153, 109, 189, 93, 202, 254, 117, 187, 67, 175, 227, 131, 179, 200, 277, 250, 234, 240] k=13
[99, 100, 166, 122, 202, 106, 215, 267, 130, 200, 80, 188, 240, 144, 192, 213, 290, 263, 247, 253]
[167, 251, 64, 149, 115, 117, 38, 61, 189, 252, 105, 122, 261, 98, 94, 139, 121, 29, 185, 140] k=10
[177, 261, 74, 159, 125, 127, 48, 71, 199, 262, 115, 132, 271, 108, 104, 149, 131, 39, 195, 150]
[66, 181, 207, 297, 291, 267, 215, 165, 276, 200, 11, 154, 169, 36, 40, 74, 243, 46, 83, 14] k=6
| [72, 187, 213, 303, 297, 273, 221, 171, 282, 206, 17, 160, 175, 42, 46, 80, 249, 52, 89, 20]
| 0 | NIv2 | task1190_add_integer_to_list | fs_opt |
instruction:
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.
question:
[46, 98, 136, 257, 21, 272, 145, 97, 34, 91, 211, 111, 176, 24, 99, 105, 225, 162, 209, 108] k=4
answer:
[50, 102, 140, 261, 25, 276, 149, 101, 38, 95, 215, 115, 180, 28, 103, 109, 229, 166, 213, 112]
question:
[115, 180, 73, 281, 12, 15, 63, 59, 62, 248, 64, 53, 127, 299, 198, 68, 274, 125, 52, 75] k=17
answer:
[132, 197, 90, 298, 29, 32, 80, 76, 79, 265, 81, 70, 144, 316, 215, 85, 291, 142, 69, 92]
question:
[147, 111, 189, 164, 201, 63, 212, 49, 30, 252, 171, 247, 244, 73, 68, 154, 57, 81, 290, 86] k=19
answer:
| [166, 130, 208, 183, 220, 82, 231, 68, 49, 271, 190, 266, 263, 92, 87, 173, 76, 100, 309, 105]
| 9 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
--------
Question: [289, 50, 168, 129, 103, 230, 240, 164, 203, 137, 59, 220, 186, 218, 274, 151, 244, 75, 277, 158] k=19
Answer: [308, 69, 187, 148, 122, 249, 259, 183, 222, 156, 78, 239, 205, 237, 293, 170, 263, 94, 296, 177]
Question: [289, 239, 111, 287, 205, 152, 165, 15, 14, 227, 189, 271, 272, 129, 231, 281, 75, 174, 107, 93] k=10
Answer: [299, 249, 121, 297, 215, 162, 175, 25, 24, 237, 199, 281, 282, 139, 241, 291, 85, 184, 117, 103]
Question: [36, 262, 222, 188, 224, 185, 126, 102, 237, 282, 159, 107, 51, 89, 169, 290, 58, 153, 120, 48] k=14
Answer: | [50, 276, 236, 202, 238, 199, 140, 116, 251, 296, 173, 121, 65, 103, 183, 304, 72, 167, 134, 62]
| 7 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Ex Input:
[293, 63, 219, 103, 72, 29, 10, 33, 113, 233, 234, 255, 154, 242, 220, 203, 208, 176, 246, 259] k=7
Ex Output:
[300, 70, 226, 110, 79, 36, 17, 40, 120, 240, 241, 262, 161, 249, 227, 210, 215, 183, 253, 266]
Ex Input:
[297, 237, 141, 89, 138, 108, 13, 91, 161, 88, 165, 251, 205, 35, 193, 222, 191, 256, 184, 260] k=15
Ex Output:
[312, 252, 156, 104, 153, 123, 28, 106, 176, 103, 180, 266, 220, 50, 208, 237, 206, 271, 199, 275]
Ex Input:
[211, 155, 266, 85, 192, 221, 249, 198, 275, 205, 195, 185, 91, 280, 232, 87, 124, 271, 75, 55] k=16
Ex Output:
| [227, 171, 282, 101, 208, 237, 265, 214, 291, 221, 211, 201, 107, 296, 248, 103, 140, 287, 91, 71]
| 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example input: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Example output: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Example explanation: 14 is added to all the elements of the input list.
Q: [181, 135, 256, 197, 61, 180, 161, 238, 194, 247, 264, 224, 150, 162, 187, 17, 232, 47, 212, 139] k=2
A: | [183, 137, 258, 199, 63, 182, 163, 240, 196, 249, 266, 226, 152, 164, 189, 19, 234, 49, 214, 141] | 3 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Ex Input:
[179, 53, 147, 13, 62, 211, 173, 154, 265, 246, 251, 78, 174, 294, 299, 160, 285, 28, 236, 156] k=3
Ex Output:
[182, 56, 150, 16, 65, 214, 176, 157, 268, 249, 254, 81, 177, 297, 302, 163, 288, 31, 239, 159]
Ex Input:
[144, 124, 279, 293, 41, 32, 77, 239, 71, 210, 297, 251, 141, 199, 206, 229, 42, 64, 253, 30] k=8
Ex Output:
[152, 132, 287, 301, 49, 40, 85, 247, 79, 218, 305, 259, 149, 207, 214, 237, 50, 72, 261, 38]
Ex Input:
[108, 33, 85, 160, 223, 258, 73, 191, 52, 283, 120, 18, 57, 292, 90, 134, 196, 261, 40, 10] k=11
Ex Output:
| [119, 44, 96, 171, 234, 269, 84, 202, 63, 294, 131, 29, 68, 303, 101, 145, 207, 272, 51, 21]
| 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Input: Consider Input: [35, 14, 205, 188, 241, 200, 47, 297, 121, 20, 246, 230, 157, 199, 174, 206, 159, 208, 72, 22] k=5
Output: [40, 19, 210, 193, 246, 205, 52, 302, 126, 25, 251, 235, 162, 204, 179, 211, 164, 213, 77, 27]
Input: Consider Input: [190, 15, 222, 127, 126, 237, 27, 179, 42, 79, 91, 114, 244, 213, 93, 200, 77, 28, 34, 175] k=4
Output: [194, 19, 226, 131, 130, 241, 31, 183, 46, 83, 95, 118, 248, 217, 97, 204, 81, 32, 38, 179]
Input: Consider Input: [277, 142, 291, 92, 179, 52, 62, 31, 247, 14, 55, 231, 270, 200, 131, 221, 53, 28, 35, 279] k=1
| Output: [278, 143, 292, 93, 180, 53, 63, 32, 248, 15, 56, 232, 271, 201, 132, 222, 54, 29, 36, 280]
| 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
Given the task definition, example input & output, solve the new input case.
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.
Example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Output: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
14 is added to all the elements of the input list.
New input case for you: [15, 165, 227, 186, 277, 264, 243, 290, 183, 134, 269, 291, 144, 91, 160, 256, 293, 216, 12, 14] k=20
Output: | [35, 185, 247, 206, 297, 284, 263, 310, 203, 154, 289, 311, 164, 111, 180, 276, 313, 236, 32, 34] | 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
Detailed Instructions: 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.
See one example below:
Problem: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Explanation: 14 is added to all the elements of the input list.
Problem: [130, 182, 137, 279, 61, 211, 42, 132, 68, 87, 230, 181, 232, 298, 274, 148, 170, 264, 195, 94] k=3
Solution: | [133, 185, 140, 282, 64, 214, 45, 135, 71, 90, 233, 184, 235, 301, 277, 151, 173, 267, 198, 97] | 4 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[EX Q]: [282, 167, 60, 50, 299, 54, 228, 140, 185, 133, 212, 113, 155, 263, 269, 17, 56, 294, 274, 252] k=20
[EX A]: [302, 187, 80, 70, 319, 74, 248, 160, 205, 153, 232, 133, 175, 283, 289, 37, 76, 314, 294, 272]
[EX Q]: [56, 282, 50, 143, 30, 71, 285, 47, 119, 260, 32, 274, 223, 95, 196, 240, 63, 290, 235, 90] k=8
[EX A]: [64, 290, 58, 151, 38, 79, 293, 55, 127, 268, 40, 282, 231, 103, 204, 248, 71, 298, 243, 98]
[EX Q]: [66, 81, 296, 172, 200, 82, 168, 232, 290, 213, 18, 171, 187, 76, 97, 32, 176, 118, 174, 188] k=4
[EX A]: | [70, 85, 300, 176, 204, 86, 172, 236, 294, 217, 22, 175, 191, 80, 101, 36, 180, 122, 178, 192]
| 6 | NIv2 | task1190_add_integer_to_list | fs_opt |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
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.
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Why? 14 is added to all the elements of the input list.
New input: [97, 197, 236, 185, 251, 137, 299, 278, 151, 274, 115, 10, 281, 184, 34, 228, 124, 258, 147, 195] k=12
Solution: | [109, 209, 248, 197, 263, 149, 311, 290, 163, 286, 127, 22, 293, 196, 46, 240, 136, 270, 159, 207] | 0 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Let me give you an example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
The answer to this example can be: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Here is why: 14 is added to all the elements of the input list.
OK. solve this:
[17, 48, 260, 40, 171, 21, 152, 221, 157, 218, 86, 113, 211, 220, 44, 172, 195, 73, 83, 69] k=10
Answer: | [27, 58, 270, 50, 181, 31, 162, 231, 167, 228, 96, 123, 221, 230, 54, 182, 205, 83, 93, 79] | 8 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Q: [126, 76, 184, 156, 120, 203, 269, 216, 51, 298, 254, 226, 130, 21, 28, 71, 240, 153, 123, 47] k=1
A: [127, 77, 185, 157, 121, 204, 270, 217, 52, 299, 255, 227, 131, 22, 29, 72, 241, 154, 124, 48]
****
Q: [38, 13, 232, 138, 120, 56, 195, 241, 228, 96, 109, 270, 172, 111, 34, 292, 107, 45, 267, 149] k=15
A: [53, 28, 247, 153, 135, 71, 210, 256, 243, 111, 124, 285, 187, 126, 49, 307, 122, 60, 282, 164]
****
Q: [280, 160, 91, 129, 111, 13, 217, 243, 147, 207, 132, 27, 10, 240, 221, 209, 42, 31, 173, 265] k=20
A: | [300, 180, 111, 149, 131, 33, 237, 263, 167, 227, 152, 47, 30, 260, 241, 229, 62, 51, 193, 285]
****
| 4 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Input: Consider Input: [25, 237, 206, 264, 205, 283, 268, 247, 100, 248, 263, 92, 64, 199, 244, 91, 132, 226, 26, 88] k=10
Output: [35, 247, 216, 274, 215, 293, 278, 257, 110, 258, 273, 102, 74, 209, 254, 101, 142, 236, 36, 98]
Input: Consider Input: [104, 215, 149, 16, 172, 294, 78, 76, 26, 260, 116, 219, 138, 150, 20, 170, 182, 156, 74, 54] k=11
Output: [115, 226, 160, 27, 183, 305, 89, 87, 37, 271, 127, 230, 149, 161, 31, 181, 193, 167, 85, 65]
Input: Consider Input: [61, 156, 52, 205, 225, 117, 210, 34, 209, 35, 248, 123, 13, 191, 45, 212, 140, 130, 241, 194] k=18
| Output: [79, 174, 70, 223, 243, 135, 228, 52, 227, 53, 266, 141, 31, 209, 63, 230, 158, 148, 259, 212]
| 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
Given the task definition, example input & output, solve the new input case.
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.
Example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Output: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
14 is added to all the elements of the input list.
New input case for you: [217, 47, 259, 265, 60, 101, 220, 170, 202, 88, 28, 274, 63, 182, 270, 55, 38, 117, 96, 40] k=9
Output: | [226, 56, 268, 274, 69, 110, 229, 179, 211, 97, 37, 283, 72, 191, 279, 64, 47, 126, 105, 49] | 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Reason: 14 is added to all the elements of the input list.
Now, solve this instance: [179, 53, 147, 13, 62, 211, 173, 154, 265, 246, 251, 78, 174, 294, 299, 160, 285, 28, 236, 156] k=3
Student: | [182, 56, 150, 16, 65, 214, 176, 157, 268, 249, 254, 81, 177, 297, 302, 163, 288, 31, 239, 159] | 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[Q]: [274, 132, 277, 297, 145, 40, 152, 298, 147, 141, 11, 259, 228, 213, 255, 284, 144, 175, 194, 32] k=5
[A]: [279, 137, 282, 302, 150, 45, 157, 303, 152, 146, 16, 264, 233, 218, 260, 289, 149, 180, 199, 37]
[Q]: [167, 251, 64, 149, 115, 117, 38, 61, 189, 252, 105, 122, 261, 98, 94, 139, 121, 29, 185, 140] k=10
[A]: [177, 261, 74, 159, 125, 127, 48, 71, 199, 262, 115, 132, 271, 108, 104, 149, 131, 39, 195, 150]
[Q]: [58, 281, 13, 81, 113, 27, 256, 193, 181, 215, 94, 93, 211, 277, 199, 219, 198, 51, 166, 286] k=1
[A]: | [59, 282, 14, 82, 114, 28, 257, 194, 182, 216, 95, 94, 212, 278, 200, 220, 199, 52, 167, 287]
| 5 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[EX Q]: [100, 291, 199, 245, 247, 104, 162, 15, 99, 166, 56, 154, 152, 86, 219, 13, 132, 171, 124, 231] k=13
[EX A]: [113, 304, 212, 258, 260, 117, 175, 28, 112, 179, 69, 167, 165, 99, 232, 26, 145, 184, 137, 244]
[EX Q]: [104, 215, 149, 16, 172, 294, 78, 76, 26, 260, 116, 219, 138, 150, 20, 170, 182, 156, 74, 54] k=11
[EX A]: [115, 226, 160, 27, 183, 305, 89, 87, 37, 271, 127, 230, 149, 161, 31, 181, 193, 167, 85, 65]
[EX Q]: [94, 70, 253, 192, 24, 62, 95, 112, 182, 14, 256, 179, 171, 217, 245, 249, 141, 251, 92, 213] k=12
[EX A]: | [106, 82, 265, 204, 36, 74, 107, 124, 194, 26, 268, 191, 183, 229, 257, 261, 153, 263, 104, 225]
| 6 | NIv2 | task1190_add_integer_to_list | fs_opt |
TASK DEFINITION: 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.
PROBLEM: [21, 209, 265, 275, 174, 217, 141, 70, 145, 278, 15, 106, 102, 241, 177, 180, 31, 85, 154, 236] k=1
SOLUTION: [22, 210, 266, 276, 175, 218, 142, 71, 146, 279, 16, 107, 103, 242, 178, 181, 32, 86, 155, 237]
PROBLEM: [224, 294, 231, 51, 252, 216, 106, 168, 154, 196, 172, 273, 79, 202, 123, 260, 259, 210, 17, 209] k=3
SOLUTION: [227, 297, 234, 54, 255, 219, 109, 171, 157, 199, 175, 276, 82, 205, 126, 263, 262, 213, 20, 212]
PROBLEM: [137, 243, 228, 108, 269, 271, 140, 191, 147, 208, 145, 260, 36, 82, 223, 174, 107, 285, 272, 178] k=20
SOLUTION: | [157, 263, 248, 128, 289, 291, 160, 211, 167, 228, 165, 280, 56, 102, 243, 194, 127, 305, 292, 198]
| 8 | NIv2 | task1190_add_integer_to_list | fs_opt |
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: [23, 190, 61, 247, 215, 140, 59, 80, 265, 120, 28, 98, 131, 198, 104, 151, 76, 158, 139, 22] k=17
A: | [40, 207, 78, 264, 232, 157, 76, 97, 282, 137, 45, 115, 148, 215, 121, 168, 93, 175, 156, 39] | 9 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Let me give you an example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
The answer to this example can be: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Here is why: 14 is added to all the elements of the input list.
OK. solve this:
[266, 195, 219, 253, 97, 116, 180, 229, 34, 142, 173, 12, 182, 127, 150, 45, 245, 167, 177, 151] k=7
Answer: | [273, 202, 226, 260, 104, 123, 187, 236, 41, 149, 180, 19, 189, 134, 157, 52, 252, 174, 184, 158] | 8 | NIv2 | task1190_add_integer_to_list | fs_opt |
Part 1. Definition
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.
Part 2. Example
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Answer: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Explanation: 14 is added to all the elements of the input list.
Part 3. Exercise
[163, 30, 242, 113, 187, 248, 49, 280, 12, 45, 26, 81, 127, 282, 269, 149, 234, 209, 129, 109] k=10
Answer: | [173, 40, 252, 123, 197, 258, 59, 290, 22, 55, 36, 91, 137, 292, 279, 159, 244, 219, 139, 119] | 7 | NIv2 | task1190_add_integer_to_list | fs_opt |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Reason: 14 is added to all the elements of the input list.
Now, solve this instance: [241, 81, 65, 116, 251, 296, 130, 90, 213, 217, 269, 142, 220, 109, 132, 231, 291, 153, 216, 243] k=1
Student: | [242, 82, 66, 117, 252, 297, 131, 91, 214, 218, 270, 143, 221, 110, 133, 232, 292, 154, 217, 244] | 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[Q]: [260, 42, 210, 144, 29, 129, 19, 149, 70, 15, 211, 170, 130, 104, 231, 81, 124, 158, 258, 82] k=12
[A]: [272, 54, 222, 156, 41, 141, 31, 161, 82, 27, 223, 182, 142, 116, 243, 93, 136, 170, 270, 94]
[Q]: [147, 111, 189, 164, 201, 63, 212, 49, 30, 252, 171, 247, 244, 73, 68, 154, 57, 81, 290, 86] k=19
[A]: [166, 130, 208, 183, 220, 82, 231, 68, 49, 271, 190, 266, 263, 92, 87, 173, 76, 100, 309, 105]
[Q]: [242, 65, 12, 284, 227, 200, 289, 239, 84, 276, 180, 201, 114, 156, 197, 166, 266, 42, 271, 27] k=11
[A]: | [253, 76, 23, 295, 238, 211, 300, 250, 95, 287, 191, 212, 125, 167, 208, 177, 277, 53, 282, 38]
| 5 | NIv2 | task1190_add_integer_to_list | fs_opt |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Reason: 14 is added to all the elements of the input list.
Now, solve this instance: [237, 55, 150, 169, 184, 133, 267, 293, 144, 216, 29, 224, 120, 285, 291, 46, 212, 244, 32, 207] k=9
Student: | [246, 64, 159, 178, 193, 142, 276, 302, 153, 225, 38, 233, 129, 294, 300, 55, 221, 253, 41, 216] | 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
TASK DEFINITION: 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.
PROBLEM: [180, 227, 163, 230, 213, 61, 294, 165, 290, 154, 58, 238, 146, 15, 253, 28, 194, 265, 257, 97] k=10
SOLUTION: [190, 237, 173, 240, 223, 71, 304, 175, 300, 164, 68, 248, 156, 25, 263, 38, 204, 275, 267, 107]
PROBLEM: [91, 166, 151, 118, 161, 172, 49, 176, 177, 226, 233, 259, 96, 205, 113, 90, 92, 188, 268, 198] k=14
SOLUTION: [105, 180, 165, 132, 175, 186, 63, 190, 191, 240, 247, 273, 110, 219, 127, 104, 106, 202, 282, 212]
PROBLEM: [237, 55, 150, 169, 184, 133, 267, 293, 144, 216, 29, 224, 120, 285, 291, 46, 212, 244, 32, 207] k=9
SOLUTION: | [246, 64, 159, 178, 193, 142, 276, 302, 153, 225, 38, 233, 129, 294, 300, 55, 221, 253, 41, 216]
| 8 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[108, 299, 71, 24, 55, 186, 288, 138, 199, 235, 249, 37, 132, 116, 163, 106, 285, 190, 206, 218] k=6
[114, 305, 77, 30, 61, 192, 294, 144, 205, 241, 255, 43, 138, 122, 169, 112, 291, 196, 212, 224]
[155, 96, 86, 196, 13, 83, 157, 295, 240, 117, 247, 94, 98, 214, 56, 259, 251, 100, 237, 183] k=2
[157, 98, 88, 198, 15, 85, 159, 297, 242, 119, 249, 96, 100, 216, 58, 261, 253, 102, 239, 185]
[35, 14, 205, 188, 241, 200, 47, 297, 121, 20, 246, 230, 157, 199, 174, 206, 159, 208, 72, 22] k=5
| [40, 19, 210, 193, 246, 205, 52, 302, 126, 25, 251, 235, 162, 204, 179, 211, 164, 213, 77, 27]
| 0 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Q: [23, 238, 103, 294, 86, 239, 73, 298, 176, 40, 226, 274, 210, 252, 171, 213, 258, 29, 249, 89] k=9
A: [32, 247, 112, 303, 95, 248, 82, 307, 185, 49, 235, 283, 219, 261, 180, 222, 267, 38, 258, 98]
****
Q: [101, 49, 13, 217, 171, 107, 55, 204, 142, 184, 109, 265, 126, 219, 90, 103, 199, 21, 69, 114] k=13
A: [114, 62, 26, 230, 184, 120, 68, 217, 155, 197, 122, 278, 139, 232, 103, 116, 212, 34, 82, 127]
****
Q: [245, 105, 236, 27, 180, 73, 83, 71, 162, 56, 172, 235, 267, 151, 122, 50, 171, 62, 58, 150] k=7
A: | [252, 112, 243, 34, 187, 80, 90, 78, 169, 63, 179, 242, 274, 158, 129, 57, 178, 69, 65, 157]
****
| 4 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[Q]: [97, 197, 236, 185, 251, 137, 299, 278, 151, 274, 115, 10, 281, 184, 34, 228, 124, 258, 147, 195] k=12
[A]: [109, 209, 248, 197, 263, 149, 311, 290, 163, 286, 127, 22, 293, 196, 46, 240, 136, 270, 159, 207]
[Q]: [240, 162, 200, 130, 147, 254, 12, 231, 110, 151, 14, 43, 75, 193, 220, 114, 281, 286, 280, 266] k=9
[A]: [249, 171, 209, 139, 156, 263, 21, 240, 119, 160, 23, 52, 84, 202, 229, 123, 290, 295, 289, 275]
[Q]: [198, 48, 294, 167, 164, 192, 78, 224, 105, 100, 20, 111, 107, 38, 261, 298, 132, 99, 45, 23] k=11
[A]: | [209, 59, 305, 178, 175, 203, 89, 235, 116, 111, 31, 122, 118, 49, 272, 309, 143, 110, 56, 34]
| 5 | NIv2 | task1190_add_integer_to_list | fs_opt |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Reason: 14 is added to all the elements of the input list.
Now, solve this instance: [249, 87, 183, 180, 193, 79, 224, 120, 18, 222, 215, 134, 32, 137, 219, 273, 146, 106, 228, 90] k=7
Student: | [256, 94, 190, 187, 200, 86, 231, 127, 25, 229, 222, 141, 39, 144, 226, 280, 153, 113, 235, 97] | 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Let me give you an example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
The answer to this example can be: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Here is why: 14 is added to all the elements of the input list.
OK. solve this:
[145, 231, 52, 11, 253, 57, 288, 109, 241, 14, 30, 16, 167, 163, 207, 164, 279, 217, 27, 105] k=4
Answer: | [149, 235, 56, 15, 257, 61, 292, 113, 245, 18, 34, 20, 171, 167, 211, 168, 283, 221, 31, 109] | 8 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[38, 265, 21, 89, 36, 95, 60, 281, 261, 65, 279, 163, 125, 200, 269, 267, 263, 13, 31, 187] k=11
[49, 276, 32, 100, 47, 106, 71, 292, 272, 76, 290, 174, 136, 211, 280, 278, 274, 24, 42, 198]
[56, 282, 50, 143, 30, 71, 285, 47, 119, 260, 32, 274, 223, 95, 196, 240, 63, 290, 235, 90] k=8
[64, 290, 58, 151, 38, 79, 293, 55, 127, 268, 40, 282, 231, 103, 204, 248, 71, 298, 243, 98]
[21, 209, 265, 275, 174, 217, 141, 70, 145, 278, 15, 106, 102, 241, 177, 180, 31, 85, 154, 236] k=1
| [22, 210, 266, 276, 175, 218, 142, 71, 146, 279, 16, 107, 103, 242, 178, 181, 32, 86, 155, 237]
| 0 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example Input: [80, 161, 73, 12, 17, 277, 295, 49, 175, 241, 230, 31, 22, 40, 28, 101, 84, 289, 149, 55] k=17
Example Output: [97, 178, 90, 29, 34, 294, 312, 66, 192, 258, 247, 48, 39, 57, 45, 118, 101, 306, 166, 72]
Example Input: [219, 103, 285, 254, 259, 247, 286, 61, 30, 223, 257, 11, 238, 269, 112, 101, 70, 136, 242, 281] k=10
Example Output: [229, 113, 295, 264, 269, 257, 296, 71, 40, 233, 267, 21, 248, 279, 122, 111, 80, 146, 252, 291]
Example Input: [285, 243, 99, 34, 27, 173, 71, 52, 276, 23, 209, 43, 206, 245, 12, 136, 147, 275, 195, 76] k=12
Example Output: | [297, 255, 111, 46, 39, 185, 83, 64, 288, 35, 221, 55, 218, 257, 24, 148, 159, 287, 207, 88]
| 3 | NIv2 | task1190_add_integer_to_list | fs_opt |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Reason: 14 is added to all the elements of the input list.
Now, solve this instance: [138, 107, 112, 105, 44, 17, 198, 259, 87, 81, 274, 118, 199, 106, 225, 152, 131, 168, 18, 160] k=6
Student: | [144, 113, 118, 111, 50, 23, 204, 265, 93, 87, 280, 124, 205, 112, 231, 158, 137, 174, 24, 166] | 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[191, 228, 224, 66, 280, 24, 266, 56, 151, 223, 106, 256, 156, 109, 291, 197, 86, 126, 26, 87] k=13
[204, 241, 237, 79, 293, 37, 279, 69, 164, 236, 119, 269, 169, 122, 304, 210, 99, 139, 39, 100]
[132, 37, 129, 220, 291, 89, 11, 135, 212, 104, 247, 145, 146, 65, 46, 15, 42, 83, 150, 216] k=11
[143, 48, 140, 231, 302, 100, 22, 146, 223, 115, 258, 156, 157, 76, 57, 26, 53, 94, 161, 227]
[206, 116, 158, 203, 214, 279, 297, 168, 211, 137, 294, 170, 104, 218, 64, 213, 91, 172, 35, 220] k=19
| [225, 135, 177, 222, 233, 298, 316, 187, 230, 156, 313, 189, 123, 237, 83, 232, 110, 191, 54, 239]
| 0 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
--------
Question: [238, 167, 224, 10, 13, 20, 136, 235, 28, 266, 298, 172, 118, 41, 299, 247, 145, 107, 159, 231] k=5
Answer: [243, 172, 229, 15, 18, 25, 141, 240, 33, 271, 303, 177, 123, 46, 304, 252, 150, 112, 164, 236]
Question: [173, 299, 106, 121, 279, 39, 212, 267, 210, 131, 46, 47, 224, 122, 188, 149, 258, 79, 99, 257] k=8
Answer: [181, 307, 114, 129, 287, 47, 220, 275, 218, 139, 54, 55, 232, 130, 196, 157, 266, 87, 107, 265]
Question: [297, 271, 166, 222, 231, 16, 278, 260, 113, 243, 191, 244, 104, 232, 282, 224, 100, 32, 15, 11] k=7
Answer: | [304, 278, 173, 229, 238, 23, 285, 267, 120, 250, 198, 251, 111, 239, 289, 231, 107, 39, 22, 18]
| 7 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Example solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Example explanation: 14 is added to all the elements of the input list.
Problem: [25, 237, 206, 264, 205, 283, 268, 247, 100, 248, 263, 92, 64, 199, 244, 91, 132, 226, 26, 88] k=10
| Solution: [35, 247, 216, 274, 215, 293, 278, 257, 110, 258, 273, 102, 74, 209, 254, 101, 142, 236, 36, 98] | 5 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Let me give you an example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
The answer to this example can be: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Here is why: 14 is added to all the elements of the input list.
OK. solve this:
[272, 161, 173, 67, 81, 218, 106, 51, 257, 56, 202, 103, 110, 274, 277, 199, 18, 36, 270, 79] k=18
Answer: | [290, 179, 191, 85, 99, 236, 124, 69, 275, 74, 220, 121, 128, 292, 295, 217, 36, 54, 288, 97] | 8 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Q: [206, 43, 17, 210, 32, 18, 105, 272, 95, 179, 151, 219, 185, 257, 159, 12, 46, 186, 195, 133] k=20
A: [226, 63, 37, 230, 52, 38, 125, 292, 115, 199, 171, 239, 205, 277, 179, 32, 66, 206, 215, 153]
****
Q: [206, 284, 165, 175, 163, 114, 129, 92, 152, 293, 150, 40, 153, 42, 73, 173, 169, 47, 156, 75] k=7
A: [213, 291, 172, 182, 170, 121, 136, 99, 159, 300, 157, 47, 160, 49, 80, 180, 176, 54, 163, 82]
****
Q: [29, 143, 116, 205, 67, 151, 167, 233, 284, 203, 202, 12, 227, 128, 121, 88, 297, 294, 34, 95] k=20
A: | [49, 163, 136, 225, 87, 171, 187, 253, 304, 223, 222, 32, 247, 148, 141, 108, 317, 314, 54, 115]
****
| 4 | NIv2 | task1190_add_integer_to_list | fs_opt |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
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.
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Why? 14 is added to all the elements of the input list.
New input: [32, 210, 169, 297, 97, 87, 62, 109, 60, 177, 72, 197, 48, 89, 299, 142, 160, 228, 103, 82] k=18
Solution: | [50, 228, 187, 315, 115, 105, 80, 127, 78, 195, 90, 215, 66, 107, 317, 160, 178, 246, 121, 100] | 0 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
--------
Question: [115, 180, 73, 281, 12, 15, 63, 59, 62, 248, 64, 53, 127, 299, 198, 68, 274, 125, 52, 75] k=17
Answer: [132, 197, 90, 298, 29, 32, 80, 76, 79, 265, 81, 70, 144, 316, 215, 85, 291, 142, 69, 92]
Question: [220, 192, 231, 136, 257, 140, 85, 141, 155, 249, 184, 92, 275, 235, 207, 51, 25, 180, 77, 61] k=14
Answer: [234, 206, 245, 150, 271, 154, 99, 155, 169, 263, 198, 106, 289, 249, 221, 65, 39, 194, 91, 75]
Question: [249, 87, 183, 180, 193, 79, 224, 120, 18, 222, 215, 134, 32, 137, 219, 273, 146, 106, 228, 90] k=7
Answer: | [256, 94, 190, 187, 200, 86, 231, 127, 25, 229, 222, 141, 39, 144, 226, 280, 153, 113, 235, 97]
| 7 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example input: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Example output: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Example explanation: 14 is added to all the elements of the input list.
Q: [297, 271, 166, 222, 231, 16, 278, 260, 113, 243, 191, 244, 104, 232, 282, 224, 100, 32, 15, 11] k=7
A: | [304, 278, 173, 229, 238, 23, 285, 267, 120, 250, 198, 251, 111, 239, 289, 231, 107, 39, 22, 18] | 3 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
--------
Question: [223, 114, 183, 61, 277, 107, 173, 255, 153, 190, 254, 206, 159, 236, 203, 181, 182, 51, 291, 146] k=18
Answer: [241, 132, 201, 79, 295, 125, 191, 273, 171, 208, 272, 224, 177, 254, 221, 199, 200, 69, 309, 164]
Question: [42, 109, 58, 79, 226, 18, 98, 289, 114, 217, 291, 268, 165, 258, 60, 19, 136, 147, 14, 111] k=9
Answer: [51, 118, 67, 88, 235, 27, 107, 298, 123, 226, 300, 277, 174, 267, 69, 28, 145, 156, 23, 120]
Question: [68, 130, 283, 35, 100, 150, 243, 192, 31, 178, 173, 25, 166, 45, 24, 235, 11, 18, 278, 240] k=12
Answer: | [80, 142, 295, 47, 112, 162, 255, 204, 43, 190, 185, 37, 178, 57, 36, 247, 23, 30, 290, 252]
| 7 | NIv2 | task1190_add_integer_to_list | fs_opt |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Reason: 14 is added to all the elements of the input list.
Now, solve this instance: [38, 123, 214, 254, 84, 25, 150, 28, 240, 185, 63, 179, 288, 217, 57, 92, 244, 204, 70, 155] k=6
Student: | [44, 129, 220, 260, 90, 31, 156, 34, 246, 191, 69, 185, 294, 223, 63, 98, 250, 210, 76, 161] | 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
Given the task definition, example input & output, solve the new input case.
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.
Example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Output: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
14 is added to all the elements of the input list.
New input case for you: [220, 192, 231, 136, 257, 140, 85, 141, 155, 249, 184, 92, 275, 235, 207, 51, 25, 180, 77, 61] k=14
Output: | [234, 206, 245, 150, 271, 154, 99, 155, 169, 263, 198, 106, 289, 249, 221, 65, 39, 194, 91, 75] | 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Example solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Example explanation: 14 is added to all the elements of the input list.
Problem: [277, 95, 149, 76, 173, 24, 54, 23, 19, 106, 51, 252, 219, 218, 221, 289, 73, 247, 145, 86] k=15
| Solution: [292, 110, 164, 91, 188, 39, 69, 38, 34, 121, 66, 267, 234, 233, 236, 304, 88, 262, 160, 101] | 5 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example Input: [74, 61, 242, 266, 128, 193, 257, 175, 36, 94, 184, 296, 295, 172, 121, 77, 221, 72, 287, 173] k=5
Example Output: [79, 66, 247, 271, 133, 198, 262, 180, 41, 99, 189, 301, 300, 177, 126, 82, 226, 77, 292, 178]
Example Input: [198, 48, 294, 167, 164, 192, 78, 224, 105, 100, 20, 111, 107, 38, 261, 298, 132, 99, 45, 23] k=11
Example Output: [209, 59, 305, 178, 175, 203, 89, 235, 116, 111, 31, 122, 118, 49, 272, 309, 143, 110, 56, 34]
Example Input: [69, 293, 199, 96, 198, 254, 270, 164, 18, 245, 188, 85, 125, 185, 60, 37, 101, 285, 56, 169] k=6
Example Output: | [75, 299, 205, 102, 204, 260, 276, 170, 24, 251, 194, 91, 131, 191, 66, 43, 107, 291, 62, 175]
| 3 | NIv2 | task1190_add_integer_to_list | fs_opt |
Part 1. Definition
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.
Part 2. Example
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Answer: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Explanation: 14 is added to all the elements of the input list.
Part 3. Exercise
[50, 249, 92, 263, 133, 24, 136, 170, 109, 273, 51, 20, 84, 41, 283, 182, 253, 224, 65, 207] k=10
Answer: | [60, 259, 102, 273, 143, 34, 146, 180, 119, 283, 61, 30, 94, 51, 293, 192, 263, 234, 75, 217] | 7 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[Q]: [175, 49, 106, 250, 173, 44, 203, 221, 104, 211, 119, 181, 36, 267, 51, 289, 183, 42, 111, 196] k=8
[A]: [183, 57, 114, 258, 181, 52, 211, 229, 112, 219, 127, 189, 44, 275, 59, 297, 191, 50, 119, 204]
[Q]: [101, 140, 47, 70, 116, 55, 256, 40, 222, 108, 147, 198, 33, 52, 237, 23, 110, 235, 90, 16] k=2
[A]: [103, 142, 49, 72, 118, 57, 258, 42, 224, 110, 149, 200, 35, 54, 239, 25, 112, 237, 92, 18]
[Q]: [156, 161, 51, 208, 149, 141, 131, 289, 143, 134, 148, 164, 94, 231, 281, 39, 260, 197, 229, 158] k=3
[A]: | [159, 164, 54, 211, 152, 144, 134, 292, 146, 137, 151, 167, 97, 234, 284, 42, 263, 200, 232, 161]
| 5 | NIv2 | task1190_add_integer_to_list | fs_opt |
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: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution is here: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Explanation: 14 is added to all the elements of the input list.
Now, solve this: [135, 230, 123, 56, 259, 18, 182, 113, 23, 133, 82, 87, 192, 200, 194, 184, 88, 132, 81, 221] k=18
Solution: | [153, 248, 141, 74, 277, 36, 200, 131, 41, 151, 100, 105, 210, 218, 212, 202, 106, 150, 99, 239] | 6 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example input: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Example output: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Example explanation: 14 is added to all the elements of the input list.
Q: [212, 65, 203, 294, 247, 146, 25, 189, 107, 246, 273, 114, 126, 164, 92, 162, 165, 135, 71, 240] k=3
A: | [215, 68, 206, 297, 250, 149, 28, 192, 110, 249, 276, 117, 129, 167, 95, 165, 168, 138, 74, 243] | 3 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Ex Input:
[249, 87, 183, 180, 193, 79, 224, 120, 18, 222, 215, 134, 32, 137, 219, 273, 146, 106, 228, 90] k=7
Ex Output:
[256, 94, 190, 187, 200, 86, 231, 127, 25, 229, 222, 141, 39, 144, 226, 280, 153, 113, 235, 97]
Ex Input:
[245, 105, 236, 27, 180, 73, 83, 71, 162, 56, 172, 235, 267, 151, 122, 50, 171, 62, 58, 150] k=7
Ex Output:
[252, 112, 243, 34, 187, 80, 90, 78, 169, 63, 179, 242, 274, 158, 129, 57, 178, 69, 65, 157]
Ex Input:
[289, 239, 111, 287, 205, 152, 165, 15, 14, 227, 189, 271, 272, 129, 231, 281, 75, 174, 107, 93] k=10
Ex Output:
| [299, 249, 121, 297, 215, 162, 175, 25, 24, 237, 199, 281, 282, 139, 241, 291, 85, 184, 117, 103]
| 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
Given the task definition, example input & output, solve the new input case.
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.
Example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Output: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
14 is added to all the elements of the input list.
New input case for you: [200, 134, 102, 178, 223, 53, 229, 291, 121, 117, 212, 232, 122, 175, 248, 271, 207, 201, 224, 234] k=17
Output: | [217, 151, 119, 195, 240, 70, 246, 308, 138, 134, 229, 249, 139, 192, 265, 288, 224, 218, 241, 251] | 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example input: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Example output: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Example explanation: 14 is added to all the elements of the input list.
Q: [292, 225, 258, 278, 73, 95, 230, 145, 49, 195, 146, 134, 31, 200, 244, 51, 34, 142, 219, 227] k=4
A: | [296, 229, 262, 282, 77, 99, 234, 149, 53, 199, 150, 138, 35, 204, 248, 55, 38, 146, 223, 231] | 3 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Ex Input:
[25, 237, 206, 264, 205, 283, 268, 247, 100, 248, 263, 92, 64, 199, 244, 91, 132, 226, 26, 88] k=10
Ex Output:
[35, 247, 216, 274, 215, 293, 278, 257, 110, 258, 273, 102, 74, 209, 254, 101, 142, 236, 36, 98]
Ex Input:
[173, 299, 106, 121, 279, 39, 212, 267, 210, 131, 46, 47, 224, 122, 188, 149, 258, 79, 99, 257] k=8
Ex Output:
[181, 307, 114, 129, 287, 47, 220, 275, 218, 139, 54, 55, 232, 130, 196, 157, 266, 87, 107, 265]
Ex Input:
[242, 52, 134, 251, 184, 50, 23, 17, 220, 68, 104, 95, 38, 155, 58, 21, 222, 115, 16, 223] k=12
Ex Output:
| [254, 64, 146, 263, 196, 62, 35, 29, 232, 80, 116, 107, 50, 167, 70, 33, 234, 127, 28, 235]
| 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[51, 26, 251, 85, 107, 105, 137, 145, 80, 191, 278, 224, 15, 66, 232, 132, 59, 68, 296, 263] k=9
[60, 35, 260, 94, 116, 114, 146, 154, 89, 200, 287, 233, 24, 75, 241, 141, 68, 77, 305, 272]
[108, 33, 85, 160, 223, 258, 73, 191, 52, 283, 120, 18, 57, 292, 90, 134, 196, 261, 40, 10] k=11
[119, 44, 96, 171, 234, 269, 84, 202, 63, 294, 131, 29, 68, 303, 101, 145, 207, 272, 51, 21]
[200, 238, 294, 250, 195, 115, 119, 55, 125, 251, 146, 245, 189, 71, 235, 14, 148, 131, 295, 272] k=9
| [209, 247, 303, 259, 204, 124, 128, 64, 134, 260, 155, 254, 198, 80, 244, 23, 157, 140, 304, 281]
| 0 | NIv2 | task1190_add_integer_to_list | fs_opt |
Given the task definition, example input & output, solve the new input case.
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.
Example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Output: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
14 is added to all the elements of the input list.
New input case for you: [115, 180, 73, 281, 12, 15, 63, 59, 62, 248, 64, 53, 127, 299, 198, 68, 274, 125, 52, 75] k=17
Output: | [132, 197, 90, 298, 29, 32, 80, 76, 79, 265, 81, 70, 144, 316, 215, 85, 291, 142, 69, 92] | 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Ex Input:
[23, 190, 61, 247, 215, 140, 59, 80, 265, 120, 28, 98, 131, 198, 104, 151, 76, 158, 139, 22] k=17
Ex Output:
[40, 207, 78, 264, 232, 157, 76, 97, 282, 137, 45, 115, 148, 215, 121, 168, 93, 175, 156, 39]
Ex Input:
[80, 234, 88, 224, 293, 60, 263, 294, 206, 75, 217, 14, 29, 152, 221, 194, 111, 183, 155, 255] k=16
Ex Output:
[96, 250, 104, 240, 309, 76, 279, 310, 222, 91, 233, 30, 45, 168, 237, 210, 127, 199, 171, 271]
Ex Input:
[115, 180, 73, 281, 12, 15, 63, 59, 62, 248, 64, 53, 127, 299, 198, 68, 274, 125, 52, 75] k=17
Ex Output:
| [132, 197, 90, 298, 29, 32, 80, 76, 79, 265, 81, 70, 144, 316, 215, 85, 291, 142, 69, 92]
| 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example Input: [71, 204, 94, 201, 175, 250, 217, 256, 17, 90, 270, 213, 126, 277, 299, 278, 294, 265, 140, 247] k=10
Example Output: [81, 214, 104, 211, 185, 260, 227, 266, 27, 100, 280, 223, 136, 287, 309, 288, 304, 275, 150, 257]
Example Input: [100, 291, 199, 245, 247, 104, 162, 15, 99, 166, 56, 154, 152, 86, 219, 13, 132, 171, 124, 231] k=13
Example Output: [113, 304, 212, 258, 260, 117, 175, 28, 112, 179, 69, 167, 165, 99, 232, 26, 145, 184, 137, 244]
Example Input: [246, 90, 46, 74, 194, 48, 197, 177, 162, 134, 273, 139, 282, 138, 77, 212, 215, 65, 173, 53] k=4
Example Output: | [250, 94, 50, 78, 198, 52, 201, 181, 166, 138, 277, 143, 286, 142, 81, 216, 219, 69, 177, 57]
| 3 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Input: Consider Input: [144, 124, 279, 293, 41, 32, 77, 239, 71, 210, 297, 251, 141, 199, 206, 229, 42, 64, 253, 30] k=8
Output: [152, 132, 287, 301, 49, 40, 85, 247, 79, 218, 305, 259, 149, 207, 214, 237, 50, 72, 261, 38]
Input: Consider Input: [279, 212, 70, 179, 59, 40, 185, 12, 107, 93, 73, 231, 149, 220, 20, 273, 17, 55, 102, 64] k=20
Output: [299, 232, 90, 199, 79, 60, 205, 32, 127, 113, 93, 251, 169, 240, 40, 293, 37, 75, 122, 84]
Input: Consider Input: [253, 206, 219, 290, 75, 218, 271, 102, 295, 281, 176, 119, 178, 118, 166, 41, 76, 289, 171, 239] k=8
| Output: [261, 214, 227, 298, 83, 226, 279, 110, 303, 289, 184, 127, 186, 126, 174, 49, 84, 297, 179, 247]
| 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
[Q]: [249, 87, 183, 180, 193, 79, 224, 120, 18, 222, 215, 134, 32, 137, 219, 273, 146, 106, 228, 90] k=7
[A]: [256, 94, 190, 187, 200, 86, 231, 127, 25, 229, 222, 141, 39, 144, 226, 280, 153, 113, 235, 97]
[Q]: [181, 135, 256, 197, 61, 180, 161, 238, 194, 247, 264, 224, 150, 162, 187, 17, 232, 47, 212, 139] k=2
[A]: [183, 137, 258, 199, 63, 182, 163, 240, 196, 249, 266, 226, 152, 164, 189, 19, 234, 49, 214, 141]
[Q]: [128, 194, 167, 59, 154, 265, 213, 292, 216, 23, 83, 299, 183, 122, 275, 237, 259, 69, 238, 169] k=20
[A]: | [148, 214, 187, 79, 174, 285, 233, 312, 236, 43, 103, 319, 203, 142, 295, 257, 279, 89, 258, 189]
| 5 | NIv2 | task1190_add_integer_to_list | fs_opt |
Detailed Instructions: 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.
See one example below:
Problem: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Explanation: 14 is added to all the elements of the input list.
Problem: [227, 162, 173, 289, 292, 30, 184, 169, 68, 283, 139, 76, 153, 171, 278, 73, 157, 150, 273, 105] k=19
Solution: | [246, 181, 192, 308, 311, 49, 203, 188, 87, 302, 158, 95, 172, 190, 297, 92, 176, 169, 292, 124] | 4 | NIv2 | task1190_add_integer_to_list | fs_opt |
TASK DEFINITION: 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.
PROBLEM: [190, 282, 199, 32, 145, 65, 149, 131, 22, 81, 215, 138, 93, 251, 143, 18, 115, 53, 39, 248] k=3
SOLUTION: [193, 285, 202, 35, 148, 68, 152, 134, 25, 84, 218, 141, 96, 254, 146, 21, 118, 56, 42, 251]
PROBLEM: [35, 84, 116, 131, 118, 256, 250, 220, 277, 257, 262, 29, 33, 108, 215, 260, 67, 166, 134, 53] k=3
SOLUTION: [38, 87, 119, 134, 121, 259, 253, 223, 280, 260, 265, 32, 36, 111, 218, 263, 70, 169, 137, 56]
PROBLEM: [76, 48, 143, 156, 150, 86, 259, 89, 141, 160, 70, 45, 20, 27, 162, 101, 11, 297, 142, 225] k=8
SOLUTION: | [84, 56, 151, 164, 158, 94, 267, 97, 149, 168, 78, 53, 28, 35, 170, 109, 19, 305, 150, 233]
| 8 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Input: Consider Input: [23, 190, 61, 247, 215, 140, 59, 80, 265, 120, 28, 98, 131, 198, 104, 151, 76, 158, 139, 22] k=17
Output: [40, 207, 78, 264, 232, 157, 76, 97, 282, 137, 45, 115, 148, 215, 121, 168, 93, 175, 156, 39]
Input: Consider Input: [163, 30, 242, 113, 187, 248, 49, 280, 12, 45, 26, 81, 127, 282, 269, 149, 234, 209, 129, 109] k=10
Output: [173, 40, 252, 123, 197, 258, 59, 290, 22, 55, 36, 91, 137, 292, 279, 159, 244, 219, 139, 119]
Input: Consider Input: [135, 262, 192, 181, 138, 179, 17, 203, 150, 73, 153, 38, 221, 296, 19, 116, 101, 126, 119, 25] k=1
| Output: [136, 263, 193, 182, 139, 180, 18, 204, 151, 74, 154, 39, 222, 297, 20, 117, 102, 127, 120, 26]
| 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
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.
Example Input: [23, 190, 61, 247, 215, 140, 59, 80, 265, 120, 28, 98, 131, 198, 104, 151, 76, 158, 139, 22] k=17
Example Output: [40, 207, 78, 264, 232, 157, 76, 97, 282, 137, 45, 115, 148, 215, 121, 168, 93, 175, 156, 39]
Example Input: [104, 201, 288, 242, 111, 88, 55, 74, 151, 90, 236, 33, 230, 256, 118, 231, 155, 281, 198, 257] k=6
Example Output: [110, 207, 294, 248, 117, 94, 61, 80, 157, 96, 242, 39, 236, 262, 124, 237, 161, 287, 204, 263]
Example Input: [165, 60, 218, 167, 280, 77, 13, 43, 256, 269, 41, 128, 208, 112, 76, 292, 250, 31, 102, 16] k=1
Example Output: | [166, 61, 219, 168, 281, 78, 14, 44, 257, 270, 42, 129, 209, 113, 77, 293, 251, 32, 103, 17]
| 3 | NIv2 | task1190_add_integer_to_list | fs_opt |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Reason: 14 is added to all the elements of the input list.
Now, solve this instance: [33, 266, 183, 174, 12, 182, 93, 190, 256, 164, 125, 285, 144, 29, 81, 193, 98, 165, 149, 185] k=12
Student: | [45, 278, 195, 186, 24, 194, 105, 202, 268, 176, 137, 297, 156, 41, 93, 205, 110, 177, 161, 197] | 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
Given the task definition, example input & output, solve the new input case.
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.
Example: [100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Output: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
14 is added to all the elements of the input list.
New input case for you: [126, 91, 288, 51, 296, 152, 181, 46, 282, 94, 200, 245, 95, 218, 216, 235, 92, 253, 27, 186] k=7
Output: | [133, 98, 295, 58, 303, 159, 188, 53, 289, 101, 207, 252, 102, 225, 223, 242, 99, 260, 34, 193] | 1 | NIv2 | task1190_add_integer_to_list | fs_opt |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[100, 291, 285, 281, 151, 189, 220, 235, 288, 160, 233, 198, 294, 269, 162, 152, 217, 247, 98, 145] k=14
Solution: [114, 305, 299, 295, 165, 203, 234, 249, 302, 174, 247, 212, 308, 283, 176, 166, 231, 261, 112, 159]
Reason: 14 is added to all the elements of the input list.
Now, solve this instance: [226, 104, 47, 270, 264, 24, 213, 196, 188, 259, 185, 88, 140, 169, 290, 21, 206, 118, 231, 240] k=10
Student: | [236, 114, 57, 280, 274, 34, 223, 206, 198, 269, 195, 98, 150, 179, 300, 31, 216, 128, 241, 250] | 2 | NIv2 | task1190_add_integer_to_list | fs_opt |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6