Dataset Viewer
inputs
stringlengths 695
1.3k
| targets
stringlengths 27
83
| _template_idx
int64 0
9
| _task_source
stringclasses 1
value | _task_name
stringclasses 1
value | _template_type
stringclasses 2
values |
---|---|---|---|---|---|
Teacher: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Reason: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Now, solve this instance: [3, 0, 1, 4, 5, 7, 13, 6]
Student:
|
[0, 32760, 0, 0, 0, 0, 0, 0]
| 2 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example Input: [0, 8, 12, 5, 1, 13, 11, 14]
Example Output: [960960, 0, 0, 0, 0, 0, 0, 0]
Example Input: [0, 13, 6, 3, 9, 12, 7, 11]
Example Output: [1945944, 0, 0, 0, 0, 0, 0, 0]
Example Input: [9, 2, 1, 4, 12, 0, 6, 14]
Example Output:
|
[0, 0, 0, 0, 0, 72576, 0, 0]
| 3 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example: [1,2,3,4,5]
Example solution: [120, 60, 40, 30, 24]
Example explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Problem: [4, 2, 5, 3, 1, 10, 7, 11]
|
Solution: [23100, 46200, 18480, 30800, 92400, 9240, 13200, 8400]
| 5 |
NIv2
|
task1088_array_of_products
|
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.
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Why? The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
New input: [1, 6, 2, 10, 9, 5, 11, 8]
Solution:
|
[475200, 79200, 237600, 47520, 52800, 95040, 43200, 59400]
| 0 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Let me give you an example: [1,2,3,4,5]
The answer to this example can be: [120, 60, 40, 30, 24]
Here is why: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
OK. solve this:
[3, 11, 1, 12, 8, 14, 13, 5]
Answer:
|
[960960, 262080, 2882880, 240240, 360360, 205920, 221760, 576576]
| 8 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
One example: [1,2,3,4,5]
Solution is here: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Now, solve this: [7, 13, 11, 8, 3, 6, 4, 1]
Solution:
|
[82368, 44352, 52416, 72072, 192192, 96096, 144144, 576576]
| 6 |
NIv2
|
task1088_array_of_products
|
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.
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Why? The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
New input: [8, 6, 9, 7, 1, 2, 3, 10]
Solution:
|
[22680, 30240, 20160, 25920, 181440, 90720, 60480, 18144]
| 0 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example: [1,2,3,4,5]
Example solution: [120, 60, 40, 30, 24]
Example explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Problem: [6, 12, 9, 2, 8, 4, 11, 3]
|
Solution: [228096, 114048, 152064, 684288, 171072, 342144, 124416, 456192]
| 5 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example Input: [12, 0, 11, 10, 9, 2, 1, 5]
Example Output: [0, 118800, 0, 0, 0, 0, 0, 0]
Example Input: [14, 4, 3, 6, 10, 12, 11, 2]
Example Output: [190080, 665280, 887040, 443520, 266112, 221760, 241920, 1330560]
Example Input: [6, 12, 9, 2, 8, 4, 11, 3]
Example Output:
|
[228096, 114048, 152064, 684288, 171072, 342144, 124416, 456192]
| 3 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Input: Consider Input: [1, 9, 6, 0, 8, 3, 13, 14]
Output: [0, 0, 0, 235872, 0, 0, 0, 0]
Input: Consider Input: [9, 12, 7, 3, 2, 10, 4, 14]
Output: [282240, 211680, 362880, 846720, 1270080, 254016, 635040, 181440]
Input: Consider Input: [7, 8, 11, 1, 12, 2, 3, 14]
|
Output: [88704, 77616, 56448, 620928, 51744, 310464, 206976, 44352]
| 2 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Input: Consider Input: [7, 1, 9, 11, 12, 5, 0, 6]
Output: [0, 0, 0, 0, 0, 0, 249480, 0]
Input: Consider Input: [9, 1, 8, 13, 5, 3, 11, 6]
Output: [102960, 926640, 115830, 71280, 185328, 308880, 84240, 154440]
Input: Consider Input: [13, 11, 8, 14, 6, 5, 4, 3]
|
Output: [443520, 524160, 720720, 411840, 960960, 1153152, 1441440, 1921920]
| 2 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example: [1,2,3,4,5]
Example solution: [120, 60, 40, 30, 24]
Example explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Problem: [9, 13, 10, 14, 7, 2, 8, 0]
|
Solution: [0, 0, 0, 0, 0, 0, 0, 1834560]
| 5 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example: [1,2,3,4,5]
Example solution: [120, 60, 40, 30, 24]
Example explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Problem: [1, 12, 0, 10, 13, 5, 8, 4]
|
Solution: [0, 0, 249600, 0, 0, 0, 0, 0]
| 5 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Ex Input:
[11, 13, 12, 6, 3, 10, 0, 5]
Ex Output:
[0, 0, 0, 0, 0, 0, 1544400, 0]
Ex Input:
[7, 10, 14, 11, 2, 3, 4, 0]
Ex Output:
[0, 0, 0, 0, 0, 0, 0, 258720]
Ex Input:
[13, 9, 6, 11, 4, 14, 10, 0]
Ex Output:
|
[0, 0, 0, 0, 0, 0, 0, 4324320]
| 1 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Ex Input:
[6, 14, 5, 10, 1, 2, 13, 3]
Ex Output:
[54600, 23400, 65520, 32760, 327600, 163800, 25200, 109200]
Ex Input:
[2, 13, 8, 14, 7, 12, 0, 5]
Ex Output:
[0, 0, 0, 0, 0, 0, 1223040, 0]
Ex Input:
[10, 11, 7, 6, 8, 2, 0, 3]
Ex Output:
|
[0, 0, 0, 0, 0, 0, 221760, 0]
| 1 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
One example is below.
Q: [1,2,3,4,5]
A: [120, 60, 40, 30, 24]
Rationale: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Q: [6, 4, 1, 5, 12, 0, 3, 9]
A:
|
[0, 0, 0, 0, 0, 38880, 0, 0]
| 9 |
NIv2
|
task1088_array_of_products
|
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.
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Why? The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
New input: [4, 9, 12, 14, 5, 6, 8, 2]
Solution:
|
[725760, 322560, 241920, 207360, 580608, 483840, 362880, 1451520]
| 0 |
NIv2
|
task1088_array_of_products
|
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.
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Why? The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
New input: [1, 4, 10, 7, 12, 2, 8, 0]
Solution:
|
[0, 0, 0, 0, 0, 0, 0, 53760]
| 0 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Part 1. Definition
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Part 2. Example
[1,2,3,4,5]
Answer: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Part 3. Exercise
[7, 6, 2, 12, 0, 8, 3, 9]
Answer:
|
[0, 0, 0, 0, 217728, 0, 0, 0]
| 7 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Ex Input:
[9, 5, 1, 7, 13, 12, 2, 6]
Ex Output:
[65520, 117936, 589680, 84240, 45360, 49140, 294840, 98280]
Ex Input:
[12, 4, 0, 6, 2, 3, 5, 9]
Ex Output:
[0, 0, 77760, 0, 0, 0, 0, 0]
Ex Input:
[7, 6, 2, 12, 0, 8, 3, 9]
Ex Output:
|
[0, 0, 0, 0, 217728, 0, 0, 0]
| 1 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
TASK DEFINITION: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
PROBLEM: [6, 7, 9, 1, 2, 13, 14, 10]
SOLUTION: [229320, 196560, 152880, 1375920, 687960, 105840, 98280, 137592]
PROBLEM: [0, 8, 12, 5, 1, 13, 11, 14]
SOLUTION: [960960, 0, 0, 0, 0, 0, 0, 0]
PROBLEM: [3, 5, 8, 11, 12, 6, 7, 4]
SOLUTION:
|
[887040, 532224, 332640, 241920, 221760, 443520, 380160, 665280]
| 8 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Part 1. Definition
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Part 2. Example
[1,2,3,4,5]
Answer: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Part 3. Exercise
[10, 8, 12, 1, 3, 6, 2, 0]
Answer:
|
[0, 0, 0, 0, 0, 0, 0, 34560]
| 7 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example Input: [2, 3, 14, 13, 9, 1, 4, 0]
Example Output: [0, 0, 0, 0, 0, 0, 0, 39312]
Example Input: [9, 8, 3, 12, 1, 4, 7, 0]
Example Output: [0, 0, 0, 0, 0, 0, 0, 72576]
Example Input: [10, 8, 12, 1, 3, 6, 2, 0]
Example Output:
|
[0, 0, 0, 0, 0, 0, 0, 34560]
| 3 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Detailed Instructions: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
See one example below:
Problem: [1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Problem: [10, 8, 14, 5, 12, 2, 3, 9]
Solution:
|
[362880, 453600, 259200, 725760, 302400, 1814400, 1209600, 403200]
| 4 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
TASK DEFINITION: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
PROBLEM: [1, 12, 0, 10, 13, 5, 8, 4]
SOLUTION: [0, 0, 249600, 0, 0, 0, 0, 0]
PROBLEM: [5, 6, 9, 10, 2, 14, 3, 4]
SOLUTION: [181440, 151200, 100800, 90720, 453600, 64800, 302400, 226800]
PROBLEM: [6, 1, 7, 2, 10, 4, 9, 12]
SOLUTION:
|
[60480, 362880, 51840, 181440, 36288, 90720, 40320, 30240]
| 8 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Q: [3, 5, 13, 7, 6, 11, 14, 8]
A: [3363360, 2018016, 776160, 1441440, 1681680, 917280, 720720, 1261260]
****
Q: [8, 1, 0, 4, 13, 12, 14, 7]
A: [0, 0, 489216, 0, 0, 0, 0, 0]
****
Q: [8, 0, 11, 4, 7, 10, 12, 3]
A:
|
[0, 887040, 0, 0, 0, 0, 0, 0]
****
| 4 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
instruction:
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
question:
[9, 7, 1, 11, 12, 10, 2, 13]
answer:
[240240, 308880, 2162160, 196560, 180180, 216216, 1081080, 166320]
question:
[5, 0, 14, 9, 6, 3, 10, 13]
answer:
[0, 1474200, 0, 0, 0, 0, 0, 0]
question:
[3, 4, 0, 12, 11, 7, 10, 2]
answer:
|
[0, 0, 221760, 0, 0, 0, 0, 0]
| 9 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
instruction:
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
question:
[7, 4, 12, 10, 11, 5, 0, 6]
answer:
[0, 0, 0, 0, 0, 0, 1108800, 0]
question:
[13, 9, 6, 11, 4, 14, 10, 0]
answer:
[0, 0, 0, 0, 0, 0, 0, 4324320]
question:
[1, 4, 10, 3, 13, 2, 0, 11]
answer:
|
[0, 0, 0, 0, 0, 0, 34320, 0]
| 9 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example input: [1,2,3,4,5]
Example output: [120, 60, 40, 30, 24]
Example explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Q: [3, 5, 13, 7, 6, 11, 14, 8]
A:
|
[3363360, 2018016, 776160, 1441440, 1681680, 917280, 720720, 1261260]
| 3 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example Input: [12, 0, 6, 11, 7, 2, 1, 5]
Example Output: [0, 55440, 0, 0, 0, 0, 0, 0]
Example Input: [3, 5, 8, 11, 12, 6, 7, 4]
Example Output: [887040, 532224, 332640, 241920, 221760, 443520, 380160, 665280]
Example Input: [3, 5, 13, 7, 6, 11, 14, 8]
Example Output:
|
[3363360, 2018016, 776160, 1441440, 1681680, 917280, 720720, 1261260]
| 3 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example input: [1,2,3,4,5]
Example output: [120, 60, 40, 30, 24]
Example explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Q: [9, 13, 7, 14, 2, 1, 0, 11]
A:
|
[0, 0, 0, 0, 0, 0, 252252, 0]
| 3 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example Input: [9, 12, 8, 0, 10, 3, 7, 14]
Example Output: [0, 0, 0, 2540160, 0, 0, 0, 0]
Example Input: [2, 13, 8, 14, 7, 12, 0, 5]
Example Output: [0, 0, 0, 0, 0, 0, 1223040, 0]
Example Input: [10, 1, 7, 9, 0, 11, 14, 5]
Example Output:
|
[0, 0, 0, 0, 485100, 0, 0, 0]
| 3 |
NIv2
|
task1088_array_of_products
|
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.
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Why? The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
New input: [9, 8, 12, 11, 5, 7, 4, 3]
Solution:
|
[443520, 498960, 332640, 362880, 798336, 570240, 997920, 1330560]
| 0 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[1, 4, 10, 7, 12, 2, 8, 0]
[0, 0, 0, 0, 0, 0, 0, 53760]
[9, 4, 14, 2, 5, 13, 3, 11]
[240240, 540540, 154440, 1081080, 432432, 166320, 720720, 196560]
[9, 8, 12, 11, 5, 7, 4, 3]
|
[443520, 498960, 332640, 362880, 798336, 570240, 997920, 1330560]
| 0 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Detailed Instructions: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
See one example below:
Problem: [1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Problem: [1, 11, 7, 5, 6, 3, 12, 0]
Solution:
|
[0, 0, 0, 0, 0, 0, 0, 83160]
| 4 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Ex Input:
[9, 7, 1, 11, 12, 10, 2, 13]
Ex Output:
[240240, 308880, 2162160, 196560, 180180, 216216, 1081080, 166320]
Ex Input:
[9, 5, 0, 3, 6, 13, 10, 14]
Ex Output:
[0, 0, 1474200, 0, 0, 0, 0, 0]
Ex Input:
[2, 1, 14, 7, 5, 12, 11, 0]
Ex Output:
|
[0, 0, 0, 0, 0, 0, 0, 129360]
| 1 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[10, 8, 12, 1, 3, 6, 2, 0]
[0, 0, 0, 0, 0, 0, 0, 34560]
[3, 7, 5, 13, 0, 9, 14, 12]
[0, 0, 0, 0, 2063880, 0, 0, 0]
[14, 2, 4, 8, 6, 11, 1, 9]
|
[38016, 266112, 133056, 66528, 88704, 48384, 532224, 59136]
| 0 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
TASK DEFINITION: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
PROBLEM: [9, 11, 13, 8, 14, 12, 5, 7]
SOLUTION: [6726720, 5503680, 4656960, 7567560, 4324320, 5045040, 12108096, 8648640]
PROBLEM: [11, 13, 12, 6, 3, 10, 0, 5]
SOLUTION: [0, 0, 0, 0, 0, 0, 1544400, 0]
PROBLEM: [1, 12, 8, 13, 2, 9, 7, 11]
SOLUTION:
|
[1729728, 144144, 216216, 133056, 864864, 192192, 247104, 157248]
| 8 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
One example is below.
Q: [1,2,3,4,5]
A: [120, 60, 40, 30, 24]
Rationale: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Q: [5, 11, 3, 10, 6, 9, 2, 12]
A:
|
[427680, 194400, 712800, 213840, 356400, 237600, 1069200, 178200]
| 9 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Input: Consider Input: [10, 8, 13, 7, 9, 1, 2, 12]
Output: [157248, 196560, 120960, 224640, 174720, 1572480, 786240, 131040]
Input: Consider Input: [6, 1, 7, 2, 10, 4, 9, 12]
Output: [60480, 362880, 51840, 181440, 36288, 90720, 40320, 30240]
Input: Consider Input: [5, 11, 3, 10, 6, 9, 2, 12]
|
Output: [427680, 194400, 712800, 213840, 356400, 237600, 1069200, 178200]
| 2 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Teacher: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Reason: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Now, solve this instance: [8, 1, 0, 4, 13, 12, 14, 7]
Student:
|
[0, 0, 489216, 0, 0, 0, 0, 0]
| 2 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Part 1. Definition
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Part 2. Example
[1,2,3,4,5]
Answer: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Part 3. Exercise
[6, 13, 0, 8, 1, 11, 9, 2]
Answer:
|
[0, 0, 123552, 0, 0, 0, 0, 0]
| 7 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example: [1,2,3,4,5]
Example solution: [120, 60, 40, 30, 24]
Example explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Problem: [6, 2, 10, 14, 12, 13, 4, 9]
|
Solution: [1572480, 4717440, 943488, 673920, 786240, 725760, 2358720, 1048320]
| 5 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
instruction:
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
question:
[1, 12, 8, 13, 2, 9, 7, 11]
answer:
[1729728, 144144, 216216, 133056, 864864, 192192, 247104, 157248]
question:
[0, 13, 6, 3, 9, 12, 7, 11]
answer:
[1945944, 0, 0, 0, 0, 0, 0, 0]
question:
[14, 11, 10, 1, 12, 6, 7, 2]
answer:
|
[110880, 141120, 155232, 1552320, 129360, 258720, 221760, 776160]
| 9 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Part 1. Definition
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Part 2. Example
[1,2,3,4,5]
Answer: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Part 3. Exercise
[7, 10, 14, 11, 2, 3, 4, 0]
Answer:
|
[0, 0, 0, 0, 0, 0, 0, 258720]
| 7 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[1, 12, 0, 10, 13, 5, 8, 4]
[0, 0, 249600, 0, 0, 0, 0, 0]
[3, 5, 13, 7, 6, 11, 14, 8]
[3363360, 2018016, 776160, 1441440, 1681680, 917280, 720720, 1261260]
[3, 0, 1, 4, 5, 7, 13, 6]
|
[0, 32760, 0, 0, 0, 0, 0, 0]
| 0 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Detailed Instructions: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
See one example below:
Problem: [1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Problem: [11, 10, 8, 13, 3, 1, 0, 4]
Solution:
|
[0, 0, 0, 0, 0, 0, 137280, 0]
| 4 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
TASK DEFINITION: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
PROBLEM: [1, 11, 6, 10, 4, 5, 14, 7]
SOLUTION: [1293600, 117600, 215600, 129360, 323400, 258720, 92400, 184800]
PROBLEM: [1, 9, 6, 0, 8, 3, 13, 14]
SOLUTION: [0, 0, 0, 235872, 0, 0, 0, 0]
PROBLEM: [4, 2, 5, 3, 1, 10, 7, 11]
SOLUTION:
|
[23100, 46200, 18480, 30800, 92400, 9240, 13200, 8400]
| 8 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[Q]: [9, 7, 13, 4, 10, 6, 2, 14]
[A]: [611520, 786240, 423360, 1375920, 550368, 917280, 2751840, 393120]
[Q]: [4, 2, 5, 3, 1, 10, 7, 11]
[A]: [23100, 46200, 18480, 30800, 92400, 9240, 13200, 8400]
[Q]: [1, 6, 2, 10, 9, 5, 11, 8]
[A]:
|
[475200, 79200, 237600, 47520, 52800, 95040, 43200, 59400]
| 5 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Input: Consider Input: [3, 1, 9, 13, 10, 14, 2, 8]
Output: [262080, 786240, 87360, 60480, 78624, 56160, 393120, 98280]
Input: Consider Input: [8, 1, 0, 12, 3, 11, 2, 10]
Output: [0, 0, 63360, 0, 0, 0, 0, 0]
Input: Consider Input: [11, 7, 10, 4, 9, 3, 12, 6]
|
Output: [544320, 855360, 598752, 1496880, 665280, 1995840, 498960, 997920]
| 2 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[Q]: [2, 3, 14, 13, 9, 1, 4, 0]
[A]: [0, 0, 0, 0, 0, 0, 0, 39312]
[Q]: [13, 12, 11, 2, 5, 8, 3, 9]
[A]: [285120, 308880, 336960, 1853280, 741312, 463320, 1235520, 411840]
[Q]: [8, 6, 9, 7, 1, 2, 3, 10]
[A]:
|
[22680, 30240, 20160, 25920, 181440, 90720, 60480, 18144]
| 5 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Given the task definition, example input & output, solve the new input case.
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example: [1,2,3,4,5]
Output: [120, 60, 40, 30, 24]
The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
New input case for you: [13, 11, 8, 14, 6, 5, 4, 3]
Output:
|
[443520, 524160, 720720, 411840, 960960, 1153152, 1441440, 1921920]
| 1 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Input: Consider Input: [8, 13, 9, 6, 4, 0, 7, 3]
Output: [0, 0, 0, 0, 0, 471744, 0, 0]
Input: Consider Input: [8, 6, 13, 9, 5, 14, 3, 7]
Output: [1031940, 1375920, 635040, 917280, 1651104, 589680, 2751840, 1179360]
Input: Consider Input: [9, 8, 7, 3, 13, 11, 2, 12]
|
Output: [576576, 648648, 741312, 1729728, 399168, 471744, 2594592, 432432]
| 2 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Part 1. Definition
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Part 2. Example
[1,2,3,4,5]
Answer: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Part 3. Exercise
[13, 12, 0, 4, 14, 2, 7, 6]
Answer:
|
[0, 0, 733824, 0, 0, 0, 0, 0]
| 7 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[EX Q]: [6, 4, 1, 5, 12, 0, 3, 9]
[EX A]: [0, 0, 0, 0, 0, 38880, 0, 0]
[EX Q]: [3, 1, 12, 8, 10, 2, 4, 11]
[EX A]: [84480, 253440, 21120, 31680, 25344, 126720, 63360, 23040]
[EX Q]: [13, 12, 0, 4, 14, 2, 7, 6]
[EX A]:
|
[0, 0, 733824, 0, 0, 0, 0, 0]
| 6 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
One example: [1,2,3,4,5]
Solution is here: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Now, solve this: [4, 9, 6, 8, 12, 2, 3, 11]
Solution:
|
[342144, 152064, 228096, 171072, 114048, 684288, 456192, 124416]
| 6 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
instruction:
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
question:
[7, 12, 11, 0, 13, 8, 10, 14]
answer:
[0, 0, 0, 13453440, 0, 0, 0, 0]
question:
[7, 0, 6, 5, 8, 12, 13, 2]
answer:
[0, 524160, 0, 0, 0, 0, 0, 0]
question:
[4, 9, 6, 8, 12, 2, 3, 11]
answer:
|
[342144, 152064, 228096, 171072, 114048, 684288, 456192, 124416]
| 9 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Part 1. Definition
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Part 2. Example
[1,2,3,4,5]
Answer: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Part 3. Exercise
[9, 5, 0, 3, 6, 13, 10, 14]
Answer:
|
[0, 0, 1474200, 0, 0, 0, 0, 0]
| 7 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example input: [1,2,3,4,5]
Example output: [120, 60, 40, 30, 24]
Example explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Q: [9, 12, 7, 3, 2, 10, 4, 14]
A:
|
[282240, 211680, 362880, 846720, 1270080, 254016, 635040, 181440]
| 3 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
instruction:
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
question:
[10, 14, 7, 1, 2, 5, 0, 3]
answer:
[0, 0, 0, 0, 0, 0, 29400, 0]
question:
[0, 8, 12, 5, 1, 13, 11, 14]
answer:
[960960, 0, 0, 0, 0, 0, 0, 0]
question:
[9, 12, 7, 3, 2, 10, 4, 14]
answer:
|
[282240, 211680, 362880, 846720, 1270080, 254016, 635040, 181440]
| 9 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Given the task definition, example input & output, solve the new input case.
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example: [1,2,3,4,5]
Output: [120, 60, 40, 30, 24]
The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
New input case for you: [8, 1, 0, 12, 3, 11, 2, 10]
Output:
|
[0, 0, 63360, 0, 0, 0, 0, 0]
| 1 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Part 1. Definition
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Part 2. Example
[1,2,3,4,5]
Answer: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Part 3. Exercise
[7, 5, 2, 0, 6, 4, 13, 14]
Answer:
|
[0, 0, 0, 305760, 0, 0, 0, 0]
| 7 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Input: Consider Input: [0, 1, 3, 14, 7, 10, 6, 2]
Output: [35280, 0, 0, 0, 0, 0, 0, 0]
Input: Consider Input: [6, 14, 5, 10, 1, 2, 13, 3]
Output: [54600, 23400, 65520, 32760, 327600, 163800, 25200, 109200]
Input: Consider Input: [9, 11, 6, 10, 13, 4, 14, 0]
|
Output: [0, 0, 0, 0, 0, 0, 0, 4324320]
| 2 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[13, 12, 0, 4, 14, 2, 7, 6]
[0, 0, 733824, 0, 0, 0, 0, 0]
[7, 10, 9, 6, 4, 14, 13, 2]
[786240, 550368, 611520, 917280, 1375920, 393120, 423360, 2751840]
[7, 6, 14, 9, 1, 4, 8, 12]
|
[290304, 338688, 145152, 225792, 2032128, 508032, 254016, 169344]
| 0 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[Q]: [12, 5, 11, 0, 13, 10, 7, 8]
[A]: [0, 0, 0, 4804800, 0, 0, 0, 0]
[Q]: [1, 4, 10, 3, 13, 2, 0, 11]
[A]: [0, 0, 0, 0, 0, 0, 34320, 0]
[Q]: [9, 5, 0, 3, 6, 13, 10, 14]
[A]:
|
[0, 0, 1474200, 0, 0, 0, 0, 0]
| 5 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Let me give you an example: [1,2,3,4,5]
The answer to this example can be: [120, 60, 40, 30, 24]
Here is why: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
OK. solve this:
[5, 0, 14, 9, 6, 3, 10, 13]
Answer:
|
[0, 1474200, 0, 0, 0, 0, 0, 0]
| 8 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
instruction:
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
question:
[0, 14, 1, 12, 2, 4, 10, 7]
answer:
[94080, 0, 0, 0, 0, 0, 0, 0]
question:
[9, 8, 3, 12, 1, 4, 7, 0]
answer:
[0, 0, 0, 0, 0, 0, 0, 72576]
question:
[5, 0, 14, 9, 6, 3, 10, 13]
answer:
|
[0, 1474200, 0, 0, 0, 0, 0, 0]
| 9 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example input: [1,2,3,4,5]
Example output: [120, 60, 40, 30, 24]
Example explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Q: [10, 14, 7, 1, 2, 5, 0, 3]
A:
|
[0, 0, 0, 0, 0, 0, 29400, 0]
| 3 |
NIv2
|
task1088_array_of_products
|
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.
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Why? The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
New input: [9, 7, 11, 1, 4, 3, 2, 6]
Solution:
|
[11088, 14256, 9072, 99792, 24948, 33264, 49896, 16632]
| 0 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[Q]: [12, 0, 11, 10, 9, 2, 1, 5]
[A]: [0, 118800, 0, 0, 0, 0, 0, 0]
[Q]: [11, 12, 3, 8, 6, 9, 1, 0]
[A]: [0, 0, 0, 0, 0, 0, 0, 171072]
[Q]: [11, 10, 8, 9, 4, 12, 14, 13]
[A]:
|
[6289920, 6918912, 8648640, 7687680, 17297280, 5765760, 4942080, 5322240]
| 5 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Detailed Instructions: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
See one example below:
Problem: [1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Problem: [12, 1, 11, 2, 3, 7, 13, 6]
Solution:
|
[36036, 432432, 39312, 216216, 144144, 61776, 33264, 72072]
| 4 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
TASK DEFINITION: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
PROBLEM: [10, 8, 14, 0, 11, 3, 5, 2]
SOLUTION: [0, 0, 0, 369600, 0, 0, 0, 0]
PROBLEM: [0, 13, 11, 4, 14, 6, 2, 1]
SOLUTION: [96096, 0, 0, 0, 0, 0, 0, 0]
PROBLEM: [3, 4, 7, 11, 13, 9, 12, 8]
SOLUTION:
|
[3459456, 2594592, 1482624, 943488, 798336, 1153152, 864864, 1297296]
| 8 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
One example is below.
Q: [1,2,3,4,5]
A: [120, 60, 40, 30, 24]
Rationale: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Q: [11, 2, 0, 14, 13, 10, 12, 4]
A:
|
[0, 0, 1921920, 0, 0, 0, 0, 0]
| 9 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Teacher: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Reason: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Now, solve this instance: [1, 10, 13, 8, 6, 12, 9, 14]
Student:
|
[9434880, 943488, 725760, 1179360, 1572480, 786240, 1048320, 673920]
| 2 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
instruction:
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
question:
[13, 9, 6, 11, 4, 14, 10, 0]
answer:
[0, 0, 0, 0, 0, 0, 0, 4324320]
question:
[9, 11, 6, 10, 13, 4, 14, 0]
answer:
[0, 0, 0, 0, 0, 0, 0, 4324320]
question:
[1, 10, 13, 8, 6, 12, 9, 14]
answer:
|
[9434880, 943488, 725760, 1179360, 1572480, 786240, 1048320, 673920]
| 9 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Input: Consider Input: [7, 12, 11, 0, 13, 8, 10, 14]
Output: [0, 0, 0, 13453440, 0, 0, 0, 0]
Input: Consider Input: [9, 8, 12, 11, 5, 7, 4, 3]
Output: [443520, 498960, 332640, 362880, 798336, 570240, 997920, 1330560]
Input: Consider Input: [0, 9, 12, 6, 5, 1, 10, 14]
|
Output: [453600, 0, 0, 0, 0, 0, 0, 0]
| 2 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Given the task definition, example input & output, solve the new input case.
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example: [1,2,3,4,5]
Output: [120, 60, 40, 30, 24]
The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
New input case for you: [3, 1, 12, 8, 10, 2, 4, 11]
Output:
|
[84480, 253440, 21120, 31680, 25344, 126720, 63360, 23040]
| 1 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example input: [1,2,3,4,5]
Example output: [120, 60, 40, 30, 24]
Example explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Q: [7, 14, 11, 6, 0, 4, 13, 10]
A:
|
[0, 0, 0, 0, 3363360, 0, 0, 0]
| 3 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
instruction:
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
question:
[7, 6, 2, 12, 0, 8, 3, 9]
answer:
[0, 0, 0, 0, 217728, 0, 0, 0]
question:
[11, 8, 1, 10, 14, 3, 0, 5]
answer:
[0, 0, 0, 0, 0, 0, 184800, 0]
question:
[7, 14, 11, 6, 0, 4, 13, 10]
answer:
|
[0, 0, 0, 0, 3363360, 0, 0, 0]
| 9 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Given the task definition, example input & output, solve the new input case.
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example: [1,2,3,4,5]
Output: [120, 60, 40, 30, 24]
The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
New input case for you: [2, 13, 8, 14, 7, 12, 0, 5]
Output:
|
[0, 0, 0, 0, 0, 0, 1223040, 0]
| 1 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Let me give you an example: [1,2,3,4,5]
The answer to this example can be: [120, 60, 40, 30, 24]
Here is why: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
OK. solve this:
[6, 5, 7, 0, 13, 2, 11, 3]
Answer:
|
[0, 0, 0, 180180, 0, 0, 0, 0]
| 8 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Teacher: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Reason: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Now, solve this instance: [7, 8, 12, 9, 3, 5, 13, 0]
Student:
|
[0, 0, 0, 0, 0, 0, 0, 1179360]
| 2 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example input: [1,2,3,4,5]
Example output: [120, 60, 40, 30, 24]
Example explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Q: [11, 8, 1, 10, 14, 3, 0, 5]
A:
|
[0, 0, 0, 0, 0, 0, 184800, 0]
| 3 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
--------
Question: [8, 2, 0, 6, 5, 12, 10, 7]
Answer: [0, 0, 403200, 0, 0, 0, 0, 0]
Question: [3, 0, 1, 4, 5, 7, 13, 6]
Answer: [0, 32760, 0, 0, 0, 0, 0, 0]
Question: [12, 5, 13, 7, 6, 1, 4, 0]
Answer:
|
[0, 0, 0, 0, 0, 0, 0, 131040]
| 7 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Ex Input:
[6, 14, 5, 10, 1, 2, 13, 3]
Ex Output:
[54600, 23400, 65520, 32760, 327600, 163800, 25200, 109200]
Ex Input:
[7, 8, 11, 1, 12, 2, 3, 14]
Ex Output:
[88704, 77616, 56448, 620928, 51744, 310464, 206976, 44352]
Ex Input:
[2, 14, 7, 3, 11, 10, 5, 9]
Ex Output:
|
[1455300, 207900, 415800, 970200, 264600, 291060, 582120, 323400]
| 1 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Part 1. Definition
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Part 2. Example
[1,2,3,4,5]
Answer: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Part 3. Exercise
[9, 7, 13, 4, 10, 6, 2, 14]
Answer:
|
[611520, 786240, 423360, 1375920, 550368, 917280, 2751840, 393120]
| 7 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Let me give you an example: [1,2,3,4,5]
The answer to this example can be: [120, 60, 40, 30, 24]
Here is why: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
OK. solve this:
[4, 12, 14, 6, 7, 8, 2, 0]
Answer:
|
[0, 0, 0, 0, 0, 0, 0, 451584]
| 8 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Q: [6, 12, 9, 2, 8, 4, 11, 3]
A: [228096, 114048, 152064, 684288, 171072, 342144, 124416, 456192]
****
Q: [1, 4, 10, 7, 12, 2, 8, 0]
A: [0, 0, 0, 0, 0, 0, 0, 53760]
****
Q: [9, 13, 10, 14, 7, 2, 8, 0]
A:
|
[0, 0, 0, 0, 0, 0, 0, 1834560]
****
| 4 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[EX Q]: [7, 6, 14, 9, 1, 4, 8, 12]
[EX A]: [290304, 338688, 145152, 225792, 2032128, 508032, 254016, 169344]
[EX Q]: [9, 7, 1, 11, 12, 10, 2, 13]
[EX A]: [240240, 308880, 2162160, 196560, 180180, 216216, 1081080, 166320]
[EX Q]: [13, 5, 6, 7, 4, 8, 14, 10]
[EX A]:
|
[940800, 2446080, 2038400, 1747200, 3057600, 1528800, 873600, 1223040]
| 6 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[EX Q]: [3, 6, 2, 7, 9, 10, 11, 14]
[EX A]: [1164240, 582120, 1746360, 498960, 388080, 349272, 317520, 249480]
[EX Q]: [3, 1, 9, 13, 10, 14, 2, 8]
[EX A]: [262080, 786240, 87360, 60480, 78624, 56160, 393120, 98280]
[EX Q]: [5, 8, 7, 13, 9, 0, 3, 11]
[EX A]:
|
[0, 0, 0, 0, 0, 1081080, 0, 0]
| 6 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
instruction:
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
question:
[6, 4, 1, 5, 12, 0, 3, 9]
answer:
[0, 0, 0, 0, 0, 38880, 0, 0]
question:
[7, 1, 9, 11, 12, 5, 0, 6]
answer:
[0, 0, 0, 0, 0, 0, 249480, 0]
question:
[4, 14, 12, 13, 2, 3, 8, 5]
answer:
|
[524160, 149760, 174720, 161280, 1048320, 698880, 262080, 419328]
| 9 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Part 1. Definition
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Part 2. Example
[1,2,3,4,5]
Answer: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Part 3. Exercise
[8, 13, 9, 6, 4, 0, 7, 3]
Answer:
|
[0, 0, 0, 0, 0, 471744, 0, 0]
| 7 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Detailed Instructions: You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
See one example below:
Problem: [1,2,3,4,5]
Solution: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Problem: [10, 11, 7, 6, 8, 2, 0, 3]
Solution:
|
[0, 0, 0, 0, 0, 0, 221760, 0]
| 4 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Q: [3, 4, 7, 11, 13, 9, 12, 8]
A: [3459456, 2594592, 1482624, 943488, 798336, 1153152, 864864, 1297296]
****
Q: [2, 14, 7, 3, 11, 10, 5, 9]
A: [1455300, 207900, 415800, 970200, 264600, 291060, 582120, 323400]
****
Q: [5, 6, 0, 3, 7, 12, 4, 11]
A:
|
[0, 0, 332640, 0, 0, 0, 0, 0]
****
| 4 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Input: Consider Input: [8, 10, 6, 12, 2, 9, 7, 14]
Output: [1270080, 1016064, 1693440, 846720, 5080320, 1128960, 1451520, 725760]
Input: Consider Input: [12, 4, 0, 6, 2, 3, 5, 9]
Output: [0, 0, 77760, 0, 0, 0, 0, 0]
Input: Consider Input: [8, 6, 13, 9, 5, 14, 3, 7]
|
Output: [1031940, 1375920, 635040, 917280, 1651104, 589680, 2751840, 1179360]
| 2 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
instruction:
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
question:
[12, 5, 13, 7, 6, 1, 4, 0]
answer:
[0, 0, 0, 0, 0, 0, 0, 131040]
question:
[3, 4, 0, 1, 14, 2, 11, 9]
answer:
[0, 0, 33264, 0, 0, 0, 0, 0]
question:
[4, 9, 12, 14, 5, 6, 8, 2]
answer:
|
[725760, 322560, 241920, 207360, 580608, 483840, 362880, 1451520]
| 9 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
Given the task definition, example input & output, solve the new input case.
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example: [1,2,3,4,5]
Output: [120, 60, 40, 30, 24]
The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
New input case for you: [7, 12, 11, 0, 13, 8, 10, 14]
Output:
|
[0, 0, 0, 13453440, 0, 0, 0, 0]
| 1 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
One example: [1,2,3,4,5]
Solution is here: [120, 60, 40, 30, 24]
Explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Now, solve this: [3, 7, 5, 13, 0, 9, 14, 12]
Solution:
|
[0, 0, 0, 0, 2063880, 0, 0, 0]
| 6 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
Example: [1,2,3,4,5]
Example solution: [120, 60, 40, 30, 24]
Example explanation: The given list contains five elements, so the answer should contain five elements too. The first element of the answer equals the product of first, second, third, fourth and fifth elements from the given list. That is: 2x3x4x5 = 120. The second element is the product of the first, third, fourth and fifth elements from the given list. That is: 1x3x4x5=60. The other elements are also calculated like this.
Problem: [5, 6, 9, 10, 2, 14, 3, 4]
|
Solution: [181440, 151200, 100800, 90720, 453600, 64800, 302400, 226800]
| 5 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
You are given a list of integers. A list is shown by comma-separated numbers between two brackets. For example, [7,3,6] is a list. The number in location one is 7, the number in location two is 3, and the number in location three is 6. You should answer with a list such that every element at each location is equal to the product of elements at every other location in the input array. For example, if a list has four numbers, the answer you give should be created like this: First element of your list = product of second, third, and fourth elements in the given list. Second element of your list = product of First, third and fourth elements in the given list, etc.
[Q]: [4, 13, 3, 5, 1, 7, 14, 10]
[A]: [191100, 58800, 254800, 152880, 764400, 109200, 54600, 76440]
[Q]: [0, 14, 1, 12, 2, 4, 10, 7]
[A]: [94080, 0, 0, 0, 0, 0, 0, 0]
[Q]: [5, 6, 9, 10, 2, 14, 3, 4]
[A]:
|
[181440, 151200, 100800, 90720, 453600, 64800, 302400, 226800]
| 5 |
NIv2
|
task1088_array_of_products
|
fs_opt
|
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6