input
stringlengths 41
91
| io_out
sequence | output_masked
stringlengths 39
81
| output
stringlengths 41
100
| io_inp
sequence |
---|---|---|---|---|
input : list = [5, -2, 5]
output : list = [-8, -8, -1] | [
-8,
-8,
-1
] | generated_output : list = mul_n(sort_des(add_n(sort_asc(sort_asc(input)),3)),-1) | generated_output : list = mul_n(sort_des(add_n(sort_asc(sort_asc([5, -2, 5])),3)),-1) | [
5,
-2,
5
] |
input : list = [-2, 2, -1]
output : list = [3, 2, -1] | [
3,
2,
-1
] | generated_output : list = reverse(sub_n(mul_n(sub_n(sort_des(input),-1),-1),-2)) | generated_output : list = reverse(sub_n(mul_n(sub_n(sort_des([-2, 2, -1]),-1),-1),-2)) | [
-2,
2,
-1
] |
input : list = [2, 1, 2, 4]
output : list = [4, 2, 2, 1] | [
4,
2,
2,
1
] | generated_output : list = sort_des(input) | generated_output : list = sort_des([2, 1, 2, 4]) | [
2,
1,
2,
4
] |
input : list = [0, 3, 4, 5]
output : list = [0, -6, -8, -10] | [
0,
-6,
-8,
-10
] | generated_output : list = take(take(mul_n(sort_asc(reverse(input)),-2),27),5) | generated_output : list = take(take(mul_n(sort_asc(reverse([0, 3, 4, 5])),-2),27),5) | [
0,
3,
4,
5
] |
input : list = [-3, -1, 2, 0, 1]
output : list = [1, -2, -4] | [
1,
-2,
-4
] | generated_output : list = sub_n(mul_n(take(reverse(take(input,3)),17),1),1) | generated_output : list = sub_n(mul_n(take(reverse(take([-3, -1, 2, 0, 1],3)),17),1),1) | [
-3,
-1,
2,
0,
1
] |
input : list = [4, -2, -3]
output : list = [4, -2, -3] | [
4,
-2,
-3
] | generated_output : list = take(reverse(reverse(take(sort_des(input),3))),37) | generated_output : list = take(reverse(reverse(take(sort_des([4, -2, -3]),3))),37) | [
4,
-2,
-3
] |
input : list = [-2, -5, -3]
output : list = [0, 10, -5] | [
0,
10,
-5
] | generated_output : list = mul_n(sub_n(sub_n(sub_n(reverse(input),3),-3),-3),-5) | generated_output : list = mul_n(sub_n(sub_n(sub_n(reverse([-2, -5, -3]),3),-3),-3),-5) | [
-2,
-5,
-3
] |
input : list = [0, 1]
output : list = [0, 2] | [
0,
2
] | generated_output : list = mul_n(input,2) | generated_output : list = mul_n([0, 1],2) | [
0,
1
] |
input : list = [-4, 1]
output : list = [-8, -3] | [
-8,
-3
] | generated_output : list = add_n(sub_n(sub_n(input,3),4),3) | generated_output : list = add_n(sub_n(sub_n([-4, 1],3),4),3) | [
-4,
1
] |
input : list = [5, 3, 4, 5]
output : list = [1, 2, 3, 3] | [
1,
2,
3,
3
] | generated_output : list = add_n(sub_n(sort_asc(add_n(add_n(input,2),-4)),4),4) | generated_output : list = add_n(sub_n(sort_asc(add_n(add_n([5, 3, 4, 5],2),-4)),4),4) | [
5,
3,
4,
5
] |
input : list = [-4, 0]
output : list = [-4, 0] | [
-4,
0
] | generated_output : list = reverse(sort_des(reverse(reverse(sort_des(input))))) | generated_output : list = reverse(sort_des(reverse(reverse(sort_des([-4, 0]))))) | [
-4,
0
] |
input : list = [0, 0]
output : list = [-1, -1] | [
-1,
-1
] | generated_output : list = sort_asc(add_n(sub_n(mul_n(mul_n(input,1),2),4),3)) | generated_output : list = sort_asc(add_n(sub_n(mul_n(mul_n([0, 0],1),2),4),3)) | [
0,
0
] |
input : list = [-5, -2]
output : list = [-2, -5] | [
-2,
-5
] | generated_output : list = take(take(sort_des(take(sort_asc(input),7)),18),8) | generated_output : list = take(take(sort_des(take(sort_asc([-5, -2]),7)),18),8) | [
-5,
-2
] |
input : list = [3, 5, -2, 3, -2, -1]
output : list = [-7, -7, -6, -2, -2, 0] | [
-7,
-7,
-6,
-2,
-2,
0
] | generated_output : list = take(sort_asc(sub_n(sort_des(add_n(input,-3)),2)),49) | generated_output : list = take(sort_asc(sub_n(sort_des(add_n([3, 5, -2, 3, -2, -1],-3)),2)),49) | [
3,
5,
-2,
3,
-2,
-1
] |
input : list = [5, -3, -2]
output : list = [-2, -3, 5] | [
-2,
-3,
5
] | generated_output : list = take(take(reverse(input),8),5) | generated_output : list = take(take(reverse([5, -3, -2]),8),5) | [
5,
-3,
-2
] |
input : list = [-3, 3]
output : list = [25, 13] | [
25,
13
] | generated_output : list = add_n(mul_n(add_n(sub_n(reverse(input),-5),2),2),5) | generated_output : list = add_n(mul_n(add_n(sub_n(reverse([-3, 3]),-5),2),2),5) | [
-3,
3
] |
input : list = [2, -3, -3]
output : list = [-1, -6, -6] | [
-1,
-6,
-6
] | generated_output : list = add_n(input,-3) | generated_output : list = add_n([2, -3, -3],-3) | [
2,
-3,
-3
] |
input : list = [-3, 2, 4, -3, 2]
output : list = [-4, -4, -14, -14, -18] | [
-4,
-4,
-14,
-14,
-18
] | generated_output : list = sub_n(sort_des(reverse(mul_n(sub_n(input,-4),-2))),2) | generated_output : list = sub_n(sort_des(reverse(mul_n(sub_n([-3, 2, 4, -3, 2],-4),-2))),2) | [
-3,
2,
4,
-3,
2
] |
input : list = [1, -4, -2, -4, 3, 3]
output : list = [13, 13, -15, -7, -15, 5] | [
13,
13,
-15,
-7,
-15,
5
] | generated_output : list = add_n(mul_n(reverse(input),4),1) | generated_output : list = add_n(mul_n(reverse([1, -4, -2, -4, 3, 3]),4),1) | [
1,
-4,
-2,
-4,
3,
3
] |
input : list = [4, -4, 5, 0, -5, -3]
output : list = [-3, -5, 0, 5, -4, 4] | [
-3,
-5,
0,
5,
-4,
4
] | generated_output : list = reverse(input) | generated_output : list = reverse([4, -4, 5, 0, -5, -3]) | [
4,
-4,
5,
0,
-5,
-3
] |
input : list = [4, -3, 5, -1, 2, -1]
output : list = [-8, -20, -8, -32, 0, -28] | [
-8,
-20,
-8,
-32,
0,
-28
] | generated_output : list = mul_n(reverse(take(take(add_n(input,3),27),9)),-4) | generated_output : list = mul_n(reverse(take(take(add_n([4, -3, 5, -1, 2, -1],3),27),9)),-4) | [
4,
-3,
5,
-1,
2,
-1
] |
input : list = [2, 4, -5, -2]
output : list = [-2, -5, 4, 2] | [
-2,
-5,
4,
2
] | generated_output : list = reverse(input) | generated_output : list = reverse([2, 4, -5, -2]) | [
2,
4,
-5,
-2
] |
input : list = [-1, -5, -1, 5]
output : list = [-5, -1, -1, 5] | [
-5,
-1,
-1,
5
] | generated_output : list = reverse(sort_des(sort_asc(input))) | generated_output : list = reverse(sort_des(sort_asc([-1, -5, -1, 5]))) | [
-1,
-5,
-1,
5
] |
input : list = [-2, 0, -1, 2, -4, -5]
output : list = [5, 7, 8, 9, 11, 12] | [
5,
7,
8,
9,
11,
12
] | generated_output : list = mul_n(sort_des(sub_n(reverse(sub_n(input,5)),2)),-1) | generated_output : list = mul_n(sort_des(sub_n(reverse(sub_n([-2, 0, -1, 2, -4, -5],5)),2)),-1) | [
-2,
0,
-1,
2,
-4,
-5
] |
input : list = [3, 4, -3, 1, 5, -2]
output : list = [11, 15, -13, 3, 19, -9] | [
11,
15,
-13,
3,
19,
-9
] | generated_output : list = take(add_n(mul_n(add_n(sub_n(input,1),2),4),-5),38) | generated_output : list = take(add_n(mul_n(add_n(sub_n([3, 4, -3, 1, 5, -2],1),2),4),-5),38) | [
3,
4,
-3,
1,
5,
-2
] |
input : list = [0, -3, 1]
output : list = [220, -20, -100] | [
220,
-20,
-100
] | generated_output : list = mul_n(sub_n(mul_n(sort_asc(mul_n(input,4)),-4),4),5) | generated_output : list = mul_n(sub_n(mul_n(sort_asc(mul_n([0, -3, 1],4)),-4),4),5) | [
0,
-3,
1
] |
input : list = [1, -1, 3, 1, 5, 5]
output : list = [5] | [
5
] | generated_output : list = sort_des(mul_n(reverse(drop(sort_asc(input),5)),1)) | generated_output : list = sort_des(mul_n(reverse(drop(sort_asc([1, -1, 3, 1, 5, 5]),5)),1)) | [
1,
-1,
3,
1,
5,
5
] |
input : list = [-5, 3, 4]
output : list = [2, 1, -7] | [
2,
1,
-7
] | generated_output : list = reverse(add_n(sub_n(sort_asc(reverse(input)),-2),-4)) | generated_output : list = reverse(add_n(sub_n(sort_asc(reverse([-5, 3, 4])),-2),-4)) | [
-5,
3,
4
] |
input : list = [3, -5, 3, -4, -4]
output : list = [-15, -18] | [
-15,
-18
] | generated_output : list = add_n(mul_n(drop(reverse(sort_asc(input)),3),3),-3) | generated_output : list = add_n(mul_n(drop(reverse(sort_asc([3, -5, 3, -4, -4])),3),3),-3) | [
3,
-5,
3,
-4,
-4
] |
input : list = [3, 5, 1, -2]
output : list = [2, 0, -2, -5] | [
2,
0,
-2,
-5
] | generated_output : list = sub_n(mul_n(sort_des(reverse(sort_des(input))),1),3) | generated_output : list = sub_n(mul_n(sort_des(reverse(sort_des([3, 5, 1, -2]))),1),3) | [
3,
5,
1,
-2
] |
input : list = [5, -5, 2]
output : list = [6] | [
6
] | generated_output : list = take(add_n(take(input,1),1),24) | generated_output : list = take(add_n(take([5, -5, 2],1),1),24) | [
5,
-5,
2
] |
input : list = [3, 3, 2, -5]
output : list = [3, 3] | [
3,
3
] | generated_output : list = add_n(sub_n(take(input,2),1),1) | generated_output : list = add_n(sub_n(take([3, 3, 2, -5],2),1),1) | [
3,
3,
2,
-5
] |
input : list = [0, -4, 2, 2, 1, -4]
output : list = [-3, -3, -4, -9] | [
-3,
-3,
-4,
-9
] | generated_output : list = drop(sub_n(input,5),2) | generated_output : list = drop(sub_n([0, -4, 2, 2, 1, -4],5),2) | [
0,
-4,
2,
2,
1,
-4
] |
input : list = [-2, 3, -4, -4]
output : list = [-4, -4, 3, -2] | [
-4,
-4,
3,
-2
] | generated_output : list = reverse(input) | generated_output : list = reverse([-2, 3, -4, -4]) | [
-2,
3,
-4,
-4
] |
input : list = [2, 2, -3]
output : list = [-3, 2] | [
-3,
2
] | generated_output : list = reverse(drop(input,1)) | generated_output : list = reverse(drop([2, 2, -3],1)) | [
2,
2,
-3
] |
input : list = [-3, 5, 3, -5, 4]
output : list = [23, 13, -17, -22, -27] | [
23,
13,
-17,
-22,
-27
] | generated_output : list = sub_n(sub_n(sort_des(mul_n(reverse(input),-5)),-2),4) | generated_output : list = sub_n(sub_n(sort_des(mul_n(reverse([-3, 5, 3, -5, 4]),-5)),-2),4) | [
-3,
5,
3,
-5,
4
] |
input : list = [-1, -3, 5]
output : list = [5, -1, -3] | [
5,
-1,
-3
] | generated_output : list = reverse(sort_asc(mul_n(reverse(reverse(input)),1))) | generated_output : list = reverse(sort_asc(mul_n(reverse(reverse([-1, -3, 5])),1))) | [
-1,
-3,
5
] |
input : list = [4, 3, 0, -2]
output : list = [-3, -1, 2, 3] | [
-3,
-1,
2,
3
] | generated_output : list = sort_asc(add_n(sub_n(reverse(sort_asc(input)),-1),-2)) | generated_output : list = sort_asc(add_n(sub_n(reverse(sort_asc([4, 3, 0, -2])),-1),-2)) | [
4,
3,
0,
-2
] |
input : list = [2, -1, -4, -2, 1, 2]
output : list = [-13, 2, 17, 7, -8, -13] | [
-13,
2,
17,
7,
-8,
-13
] | generated_output : list = sub_n(mul_n(mul_n(input,5),-1),3) | generated_output : list = sub_n(mul_n(mul_n([2, -1, -4, -2, 1, 2],5),-1),3) | [
2,
-1,
-4,
-2,
1,
2
] |
input : list = [-2, 0, -2]
output : list = [0, -2] | [
0,
-2
] | generated_output : list = drop(input,1) | generated_output : list = drop([-2, 0, -2],1) | [
-2,
0,
-2
] |
input : list = [-3, -2, -1, 4, -3]
output : list = [-55, 15] | [
-55,
15
] | generated_output : list = mul_n(sub_n(sub_n(mul_n(drop(input,3),2),-4),1),-5) | generated_output : list = mul_n(sub_n(sub_n(mul_n(drop([-3, -2, -1, 4, -3],3),2),-4),1),-5) | [
-3,
-2,
-1,
4,
-3
] |
input : list = [3, -1, 5, -2, -2, -5]
output : list = [-5, -2, -2, -1, 3, 5] | [
-5,
-2,
-2,
-1,
3,
5
] | generated_output : list = sort_asc(sort_des(sort_des(sort_des(input)))) | generated_output : list = sort_asc(sort_des(sort_des(sort_des([3, -1, 5, -2, -2, -5])))) | [
3,
-1,
5,
-2,
-2,
-5
] |
input : list = [3, 5, -1]
output : list = [1, -1, -5] | [
1,
-1,
-5
] | generated_output : list = add_n(sort_des(input),-4) | generated_output : list = add_n(sort_des([3, 5, -1]),-4) | [
3,
5,
-1
] |
input : list = [1, -5]
output : list = [-15, 3] | [
-15,
3
] | generated_output : list = mul_n(sort_asc(sort_des(input)),3) | generated_output : list = mul_n(sort_asc(sort_des([1, -5])),3) | [
1,
-5
] |
input : list = [-5, -5]
output : list = [12, 12] | [
12,
12
] | generated_output : list = mul_n(sort_des(sort_asc(add_n(sort_des(input),2))),-4) | generated_output : list = mul_n(sort_des(sort_asc(add_n(sort_des([-5, -5]),2))),-4) | [
-5,
-5
] |
input : list = [-1, -3, -2, 5, -3]
output : list = [1, -1, 0, 7, -1] | [
1,
-1,
0,
7,
-1
] | generated_output : list = take(sub_n(input,-2),21) | generated_output : list = take(sub_n([-1, -3, -2, 5, -3],-2),21) | [
-1,
-3,
-2,
5,
-3
] |
input : list = [-4, 5]
output : list = [5, -4] | [
5,
-4
] | generated_output : list = sort_des(input) | generated_output : list = sort_des([-4, 5]) | [
-4,
5
] |
input : list = [-1, 2, 4]
output : list = [12, 6, -3] | [
12,
6,
-3
] | generated_output : list = take(sort_des(mul_n(reverse(input),3)),29) | generated_output : list = take(sort_des(mul_n(reverse([-1, 2, 4]),3)),29) | [
-1,
2,
4
] |
input : list = [5, 5, -1, -3]
output : list = [-3, -1, 5, 5] | [
-3,
-1,
5,
5
] | generated_output : list = add_n(take(reverse(sub_n(add_n(input,-3),2)),7),5) | generated_output : list = add_n(take(reverse(sub_n(add_n([5, 5, -1, -3],-3),2)),7),5) | [
5,
5,
-1,
-3
] |
input : list = [-5, -5, 2, -2]
output : list = [5, 1, -2, -2] | [
5,
1,
-2,
-2
] | generated_output : list = reverse(add_n(sort_asc(input),3)) | generated_output : list = reverse(add_n(sort_asc([-5, -5, 2, -2]),3)) | [
-5,
-5,
2,
-2
] |
input : list = [2, 2]
output : list = [-4, -4] | [
-4,
-4
] | generated_output : list = sub_n(sub_n(take(mul_n(sort_asc(input),2),21),3),5) | generated_output : list = sub_n(sub_n(take(mul_n(sort_asc([2, 2]),2),21),3),5) | [
2,
2
] |
input : list = [-4, 3, -5]
output : list = [3, -5] | [
3,
-5
] | generated_output : list = reverse(reverse(drop(input,1))) | generated_output : list = reverse(reverse(drop([-4, 3, -5],1))) | [
-4,
3,
-5
] |
input : list = [0, 0, -5, 1, 3, 2]
output : list = [5, -15, 9, 17, 13] | [
5,
-15,
9,
17,
13
] | generated_output : list = add_n(mul_n(add_n(sub_n(drop(input,1),1),2),4),1) | generated_output : list = add_n(mul_n(add_n(sub_n(drop([0, 0, -5, 1, 3, 2],1),1),2),4),1) | [
0,
0,
-5,
1,
3,
2
] |
input : list = [-1, 4, 2, -2, -4]
output : list = [-8, 42, 22] | [
-8,
42,
22
] | generated_output : list = sub_n(add_n(mul_n(mul_n(take(input,3),-2),-5),4),2) | generated_output : list = sub_n(add_n(mul_n(mul_n(take([-1, 4, 2, -2, -4],3),-2),-5),4),2) | [
-1,
4,
2,
-2,
-4
] |
input : list = [-5, -5, 4]
output : list = [0, 9] | [
0,
9
] | generated_output : list = sub_n(add_n(drop(input,1),4),-1) | generated_output : list = sub_n(add_n(drop([-5, -5, 4],1),4),-1) | [
-5,
-5,
4
] |
input : list = [4, 1, -3, 4, -3]
output : list = [-5, 9, -5, 3, 9] | [
-5,
9,
-5,
3,
9
] | generated_output : list = sub_n(reverse(take(take(mul_n(input,2),22),21)),-1) | generated_output : list = sub_n(reverse(take(take(mul_n([4, 1, -3, 4, -3],2),22),21)),-1) | [
4,
1,
-3,
4,
-3
] |
input : list = [0, -2, 4]
output : list = [8, 0, -16] | [
8,
0,
-16
] | generated_output : list = sort_des(reverse(take(sort_asc(mul_n(input,-4)),12))) | generated_output : list = sort_des(reverse(take(sort_asc(mul_n([0, -2, 4],-4)),12))) | [
0,
-2,
4
] |
input : list = [-3, 0]
output : list = [0, -3] | [
0,
-3
] | generated_output : list = take(take(reverse(sort_asc(sort_des(input))),4),25) | generated_output : list = take(take(reverse(sort_asc(sort_des([-3, 0]))),4),25) | [
-3,
0
] |
input : list = [3, 5, -3, 1, 3]
output : list = [-2, 2, 4, 4, 6] | [
-2,
2,
4,
4,
6
] | generated_output : list = add_n(sort_asc(sort_des(input)),1) | generated_output : list = add_n(sort_asc(sort_des([3, 5, -3, 1, 3])),1) | [
3,
5,
-3,
1,
3
] |
input : list = [5, 5, -1, 0, 5]
output : list = [0, 25] | [
0,
25
] | generated_output : list = mul_n(sort_asc(reverse(take(drop(input,3),5))),5) | generated_output : list = mul_n(sort_asc(reverse(take(drop([5, 5, -1, 0, 5],3),5))),5) | [
5,
5,
-1,
0,
5
] |
input : list = [-3, -5, -1, -4, 5, -3]
output : list = [1, -1, 3, 0, 9, 1] | [
1,
-1,
3,
0,
9,
1
] | generated_output : list = add_n(take(sub_n(sub_n(sub_n(input,4),-4),-1),28),3) | generated_output : list = add_n(take(sub_n(sub_n(sub_n([-3, -5, -1, -4, 5, -3],4),-4),-1),28),3) | [
-3,
-5,
-1,
-4,
5,
-3
] |
input : list = [-1, 5, -4]
output : list = [6, 0, -3] | [
6,
0,
-3
] | generated_output : list = add_n(sort_des(sort_des(sort_des(sort_des(input)))),1) | generated_output : list = add_n(sort_des(sort_des(sort_des(sort_des([-1, 5, -4])))),1) | [
-1,
5,
-4
] |
input : list = [2, 5, 3, 0, -5, 1]
output : list = [9, 7, 6, 5, 4, -1] | [
9,
7,
6,
5,
4,
-1
] | generated_output : list = sort_des(add_n(sort_des(take(sub_n(input,-1),17)),3)) | generated_output : list = sort_des(add_n(sort_des(take(sub_n([2, 5, 3, 0, -5, 1],-1),17)),3)) | [
2,
5,
3,
0,
-5,
1
] |
input : list = [-5, -2, 3, -2]
output : list = [-5, -2, -2, 3] | [
-5,
-2,
-2,
3
] | generated_output : list = sort_asc(input) | generated_output : list = sort_asc([-5, -2, 3, -2]) | [
-5,
-2,
3,
-2
] |
input : list = [-5, 2]
output : list = [20, 6] | [
20,
6
] | generated_output : list = mul_n(sort_asc(sub_n(input,5)),-2) | generated_output : list = mul_n(sort_asc(sub_n([-5, 2],5)),-2) | [
-5,
2
] |
input : list = [4, 3, 1, 1, -1]
output : list = [-1, 1, 1, 3, 4] | [
-1,
1,
1,
3,
4
] | generated_output : list = take(sort_asc(input),23) | generated_output : list = take(sort_asc([4, 3, 1, 1, -1]),23) | [
4,
3,
1,
1,
-1
] |
input : list = [-1, -3, -3, 1, 3]
output : list = [-12, -4] | [
-12,
-4
] | generated_output : list = sort_asc(sort_asc(drop(reverse(mul_n(input,4)),3))) | generated_output : list = sort_asc(sort_asc(drop(reverse(mul_n([-1, -3, -3, 1, 3],4)),3))) | [
-1,
-3,
-3,
1,
3
] |
input : list = [0, -2, -3]
output : list = [0] | [
0
] | generated_output : list = mul_n(reverse(add_n(sub_n(take(input,1),5),5)),4) | generated_output : list = mul_n(reverse(add_n(sub_n(take([0, -2, -3],1),5),5)),4) | [
0,
-2,
-3
] |
input : list = [5, 1, -1, 1]
output : list = [20, 8, 8, 2] | [
20,
8,
8,
2
] | generated_output : list = mul_n(sub_n(mul_n(sort_asc(mul_n(input,-1)),3),5),-1) | generated_output : list = mul_n(sub_n(mul_n(sort_asc(mul_n([5, 1, -1, 1],-1)),3),5),-1) | [
5,
1,
-1,
1
] |
input : list = [-3, 5, 4]
output : list = [-2, 6, 5] | [
-2,
6,
5
] | generated_output : list = sub_n(input,-1) | generated_output : list = sub_n([-3, 5, 4],-1) | [
-3,
5,
4
] |
input : list = [-2, -5]
output : list = [-40, -100] | [
-40,
-100
] | generated_output : list = mul_n(sort_des(mul_n(input,4)),5) | generated_output : list = mul_n(sort_des(mul_n([-2, -5],4)),5) | [
-2,
-5
] |
input : list = [5, -4, -2, -5, 5, 5]
output : list = [-4, -3, -1, 6, 6, 6] | [
-4,
-3,
-1,
6,
6,
6
] | generated_output : list = sort_asc(add_n(reverse(sort_des(sort_asc(input))),1)) | generated_output : list = sort_asc(add_n(reverse(sort_des(sort_asc([5, -4, -2, -5, 5, 5]))),1)) | [
5,
-4,
-2,
-5,
5,
5
] |
input : list = [-3, -3, -5]
output : list = [-9] | [
-9
] | generated_output : list = sub_n(sort_des(take(sort_des(add_n(input,-5)),1)),1) | generated_output : list = sub_n(sort_des(take(sort_des(add_n([-3, -3, -5],-5)),1)),1) | [
-3,
-3,
-5
] |
input : list = [5, 5, 5]
output : list = [1, 1] | [
1,
1
] | generated_output : list = sub_n(drop(input,1),4) | generated_output : list = sub_n(drop([5, 5, 5],1),4) | [
5,
5,
5
] |
input : list = [3, 1, -1, -3, 3, 3]
output : list = [2, 4, 8, 8] | [
2,
4,
8,
8
] | generated_output : list = sort_asc(add_n(reverse(reverse(drop(input,2))),5)) | generated_output : list = sort_asc(add_n(reverse(reverse(drop([3, 1, -1, -3, 3, 3],2))),5)) | [
3,
1,
-1,
-3,
3,
3
] |
input : list = [2, -1]
output : list = [-3, 0] | [
-3,
0
] | generated_output : list = sort_asc(add_n(add_n(sort_asc(reverse(input)),2),-4)) | generated_output : list = sort_asc(add_n(add_n(sort_asc(reverse([2, -1])),2),-4)) | [
2,
-1
] |
input : list = [-3, 0, 5, -3, -4]
output : list = [7, 2, -1, -1, -2] | [
7,
2,
-1,
-1,
-2
] | generated_output : list = take(sort_des(add_n(sort_asc(add_n(input,5)),-3)),39) | generated_output : list = take(sort_des(add_n(sort_asc(add_n([-3, 0, 5, -3, -4],5)),-3)),39) | [
-3,
0,
5,
-3,
-4
] |
input : list = [1, 4]
output : list = [7, 4] | [
7,
4
] | generated_output : list = sort_des(add_n(sub_n(sub_n(reverse(input),-3),-5),-5)) | generated_output : list = sort_des(add_n(sub_n(sub_n(reverse([1, 4]),-3),-5),-5)) | [
1,
4
] |
input : list = [-5, -4, -4, -5]
output : list = [-2, -2, -3, -3] | [
-2,
-2,
-3,
-3
] | generated_output : list = sort_des(mul_n(reverse(sub_n(sub_n(input,-1),-1)),1)) | generated_output : list = sort_des(mul_n(reverse(sub_n(sub_n([-5, -4, -4, -5],-1),-1)),1)) | [
-5,
-4,
-4,
-5
] |
input : list = [0, -5]
output : list = [-1, -6] | [
-1,
-6
] | generated_output : list = add_n(input,-1) | generated_output : list = add_n([0, -5],-1) | [
0,
-5
] |
input : list = [-3, -4, -2]
output : list = [-3] | [
-3
] | generated_output : list = take(input,1) | generated_output : list = take([-3, -4, -2],1) | [
-3,
-4,
-2
] |
input : list = [-2, -1]
output : list = [-9, -8] | [
-9,
-8
] | generated_output : list = sub_n(add_n(add_n(sub_n(input,3),-4),-1),-1) | generated_output : list = sub_n(add_n(add_n(sub_n([-2, -1],3),-4),-1),-1) | [
-2,
-1
] |
input : list = [3, -1]
output : list = [-30, 10] | [
-30,
10
] | generated_output : list = mul_n(reverse(sort_des(mul_n(mul_n(input,2),-1))),5) | generated_output : list = mul_n(reverse(sort_des(mul_n(mul_n([3, -1],2),-1))),5) | [
3,
-1
] |
input : list = [2, -1, 3, 4, 1, -2]
output : list = [30, 15, -15, -30] | [
30,
15,
-15,
-30
] | generated_output : list = mul_n(mul_n(reverse(drop(sort_des(input),2)),-3),5) | generated_output : list = mul_n(mul_n(reverse(drop(sort_des([2, -1, 3, 4, 1, -2]),2)),-3),5) | [
2,
-1,
3,
4,
1,
-2
] |
input : list = [-2, -2, 2, -1, 3]
output : list = [45, 45, 60, 105, 120] | [
45,
45,
60,
105,
120
] | generated_output : list = mul_n(sort_asc(sort_des(mul_n(add_n(input,5),3))),5) | generated_output : list = mul_n(sort_asc(sort_des(mul_n(add_n([-2, -2, 2, -1, 3],5),3))),5) | [
-2,
-2,
2,
-1,
3
] |
input : list = [2, 5, 1]
output : list = [2, 5, 1] | [
2,
5,
1
] | generated_output : list = reverse(take(reverse(input),13)) | generated_output : list = reverse(take(reverse([2, 5, 1]),13)) | [
2,
5,
1
] |
input : list = [5, -5, 3]
output : list = [1, -9, -1] | [
1,
-9,
-1
] | generated_output : list = add_n(input,-4) | generated_output : list = add_n([5, -5, 3],-4) | [
5,
-5,
3
] |
input : list = [1, -1, 1, -3, -5]
output : list = [-9, -7, -3] | [
-9,
-7,
-3
] | generated_output : list = reverse(add_n(sort_des(reverse(drop(input,2))),-4)) | generated_output : list = reverse(add_n(sort_des(reverse(drop([1, -1, 1, -3, -5],2))),-4)) | [
1,
-1,
1,
-3,
-5
] |
input : list = [-4, -5, -3, 1, 4, -2]
output : list = [5, 20, -10] | [
5,
20,
-10
] | generated_output : list = sub_n(mul_n(sub_n(take(drop(input,3),5),-1),5),5) | generated_output : list = sub_n(mul_n(sub_n(take(drop([-4, -5, -3, 1, 4, -2],3),5),-1),5),5) | [
-4,
-5,
-3,
1,
4,
-2
] |
input : list = [-3, 4, -3, -2, -3]
output : list = [1, 1, 1, 2, 8] | [
1,
1,
1,
2,
8
] | generated_output : list = sub_n(add_n(reverse(reverse(sort_asc(input))),-1),-5) | generated_output : list = sub_n(add_n(reverse(reverse(sort_asc([-3, 4, -3, -2, -3]))),-1),-5) | [
-3,
4,
-3,
-2,
-3
] |
input : list = [2, 3, 1, -4, -3]
output : list = [8, 12, -8, -16, -12] | [
8,
12,
-8,
-16,
-12
] | generated_output : list = sub_n(sub_n(take(mul_n(reverse(input),-4),33),2),2) | generated_output : list = sub_n(sub_n(take(mul_n(reverse([2, 3, 1, -4, -3]),-4),33),2),2) | [
2,
3,
1,
-4,
-3
] |
input : list = [-4, -3, -5, -3, 2, 3]
output : list = [-3, -5, -3, 2, 3] | [
-3,
-5,
-3,
2,
3
] | generated_output : list = drop(input,1) | generated_output : list = drop([-4, -3, -5, -3, 2, 3],1) | [
-4,
-3,
-5,
-3,
2,
3
] |
input : list = [1, -3, -3, 5, 4]
output : list = [1, -3, -3, 5, 4] | [
1,
-3,
-3,
5,
4
] | generated_output : list = take(reverse(reverse(input)),13) | generated_output : list = take(reverse(reverse([1, -3, -3, 5, 4])),13) | [
1,
-3,
-3,
5,
4
] |
input : list = [5, 5, -3, 4]
output : list = [1, 1, -7, 0] | [
1,
1,
-7,
0
] | generated_output : list = add_n(input,-4) | generated_output : list = add_n([5, 5, -3, 4],-4) | [
5,
5,
-3,
4
] |
input : list = [-1, -4, 5, -3]
output : list = [2, 3, 5, 11] | [
2,
3,
5,
11
] | generated_output : list = add_n(sub_n(sort_asc(take(reverse(input),18)),-5),1) | generated_output : list = add_n(sub_n(sort_asc(take(reverse([-1, -4, 5, -3]),18)),-5),1) | [
-1,
-4,
5,
-3
] |
input : list = [5, -4, -5, -2]
output : list = [24, 12, -12, -96] | [
24,
12,
-12,
-96
] | generated_output : list = reverse(sort_asc(mul_n(mul_n(add_n(input,3),3),-4))) | generated_output : list = reverse(sort_asc(mul_n(mul_n(add_n([5, -4, -5, -2],3),3),-4))) | [
5,
-4,
-5,
-2
] |
input : list = [4, 0, 2, -3, 3, 0]
output : list = [0, 3, 3, 5, 6, 7] | [
0,
3,
3,
5,
6,
7
] | generated_output : list = sub_n(take(take(sort_asc(sort_des(input)),25),6),-3) | generated_output : list = sub_n(take(take(sort_asc(sort_des([4, 0, 2, -3, 3, 0])),25),6),-3) | [
4,
0,
2,
-3,
3,
0
] |
input : list = [5, 0, 3, 3, -5, 1]
output : list = [0, -2, -2, -4, -5, -10] | [
0,
-2,
-2,
-4,
-5,
-10
] | generated_output : list = reverse(reverse(add_n(sort_des(sort_des(input)),-5))) | generated_output : list = reverse(reverse(add_n(sort_des(sort_des([5, 0, 3, 3, -5, 1])),-5))) | [
5,
0,
3,
3,
-5,
1
] |
input : list = [-1, -3, -3, 0, -3]
output : list = [-16, -16, -6] | [
-16,
-16,
-6
] | generated_output : list = mul_n(add_n(sort_des(mul_n(take(input,3),-5)),1),-1) | generated_output : list = mul_n(add_n(sort_des(mul_n(take([-1, -3, -3, 0, -3],3),-5)),1),-1) | [
-1,
-3,
-3,
0,
-3
] |
input : list = [-4, 0, -3, 2]
output : list = [45, 30, -15, -45] | [
45,
30,
-15,
-45
] | generated_output : list = sort_des(mul_n(sub_n(sub_n(mul_n(input,-3),4),-1),5)) | generated_output : list = sort_des(mul_n(sub_n(sub_n(mul_n([-4, 0, -3, 2],-3),4),-1),5)) | [
-4,
0,
-3,
2
] |