input
stringlengths 41
91
| io_out
sequence | output_masked
stringlengths 39
81
| output
stringlengths 41
100
| io_inp
sequence |
---|---|---|---|---|
input : list = [1, -2, -1, -1]
output : list = [1, -1, -1, -2] | [
1,
-1,
-1,
-2
] | generated_output : list = sort_des(sort_des(input)) | generated_output : list = sort_des(sort_des([1, -2, -1, -1])) | [
1,
-2,
-1,
-1
] |
input : list = [-5, -4]
output : list = [-10] | [
-10
] | generated_output : list = add_n(drop(add_n(sort_des(sort_asc(input)),-2),1),-3) | generated_output : list = add_n(drop(add_n(sort_des(sort_asc([-5, -4])),-2),1),-3) | [
-5,
-4
] |
input : list = [-5, 3, 3]
output : list = [-6] | [
-6
] | generated_output : list = add_n(sub_n(sub_n(add_n(take(input,1),2),-3),3),-3) | generated_output : list = add_n(sub_n(sub_n(add_n(take([-5, 3, 3],1),2),-3),3),-3) | [
-5,
3,
3
] |
input : list = [-1, -3, -2, 4, -1, 0]
output : list = [7] | [
7
] | generated_output : list = take(reverse(sort_asc(sub_n(drop(input,3),-3))),1) | generated_output : list = take(reverse(sort_asc(sub_n(drop([-1, -3, -2, 4, -1, 0],3),-3))),1) | [
-1,
-3,
-2,
4,
-1,
0
] |
input : list = [4, -4, 3, -4, 1, -5]
output : list = [5, 3, -2, -3] | [
5,
3,
-2,
-3
] | generated_output : list = sort_des(sub_n(sub_n(reverse(drop(input,2)),-3),1)) | generated_output : list = sort_des(sub_n(sub_n(reverse(drop([4, -4, 3, -4, 1, -5],2)),-3),1)) | [
4,
-4,
3,
-4,
1,
-5
] |
input : list = [-2, 4, 1, -1, -4]
output : list = [-6, -4, -3, -1, 2] | [
-6,
-4,
-3,
-1,
2
] | generated_output : list = take(take(sort_asc(reverse(add_n(input,-2))),40),44) | generated_output : list = take(take(sort_asc(reverse(add_n([-2, 4, 1, -1, -4],-2))),40),44) | [
-2,
4,
1,
-1,
-4
] |
input : list = [-1, -1]
output : list = [12, 12] | [
12,
12
] | generated_output : list = mul_n(sub_n(sort_asc(input),3),-3) | generated_output : list = mul_n(sub_n(sort_asc([-1, -1]),3),-3) | [
-1,
-1
] |
input : list = [-3, -4, -1, -4, -3]
output : list = [10, 8] | [
10,
8
] | generated_output : list = mul_n(sort_asc(drop(take(sub_n(input,1),5),3)),-2) | generated_output : list = mul_n(sort_asc(drop(take(sub_n([-3, -4, -1, -4, -3],1),5),3)),-2) | [
-3,
-4,
-1,
-4,
-3
] |
input : list = [-5, -2]
output : list = [25, 10] | [
25,
10
] | generated_output : list = mul_n(mul_n(mul_n(input,-1),-5),-1) | generated_output : list = mul_n(mul_n(mul_n([-5, -2],-1),-5),-1) | [
-5,
-2
] |
input : list = [1, 4, 1, 4, 5]
output : list = [8, 8, 20, 20, 24] | [
8,
8,
20,
20,
24
] | generated_output : list = mul_n(sub_n(sub_n(reverse(sort_des(input)),-2),1),4) | generated_output : list = mul_n(sub_n(sub_n(reverse(sort_des([1, 4, 1, 4, 5])),-2),1),4) | [
1,
4,
1,
4,
5
] |
input : list = [1, 4]
output : list = [-5, -20] | [
-5,
-20
] | generated_output : list = mul_n(input,-5) | generated_output : list = mul_n([1, 4],-5) | [
1,
4
] |
input : list = [5, -2]
output : list = [5, -2] | [
5,
-2
] | generated_output : list = sort_des(input) | generated_output : list = sort_des([5, -2]) | [
5,
-2
] |
input : list = [-5, -1, 3, -4, -5]
output : list = [-5, -5, -4, -1, 3] | [
-5,
-5,
-4,
-1,
3
] | generated_output : list = sub_n(sort_asc(add_n(mul_n(sub_n(input,1),1),2)),1) | generated_output : list = sub_n(sort_asc(add_n(mul_n(sub_n([-5, -1, 3, -4, -5],1),1),2)),1) | [
-5,
-1,
3,
-4,
-5
] |
input : list = [-4, 5, 2, 5, -4, -3]
output : list = [-160, -220, 320, 140, 320, -220] | [
-160,
-220,
320,
140,
320,
-220
] | generated_output : list = mul_n(reverse(add_n(mul_n(mul_n(input,4),3),4)),5) | generated_output : list = mul_n(reverse(add_n(mul_n(mul_n([-4, 5, 2, 5, -4, -3],4),3),4)),5) | [
-4,
5,
2,
5,
-4,
-3
] |
input : list = [-3, 2, 0, 2, -1, 1]
output : list = [1, -1, 2, 0, 2, -3] | [
1,
-1,
2,
0,
2,
-3
] | generated_output : list = reverse(input) | generated_output : list = reverse([-3, 2, 0, 2, -1, 1]) | [
-3,
2,
0,
2,
-1,
1
] |
input : list = [5, 4, -1, -3, -4]
output : list = [-10, -9, -7] | [
-10,
-9,
-7
] | generated_output : list = add_n(sort_asc(sort_asc(add_n(drop(input,2),-1))),-5) | generated_output : list = add_n(sort_asc(sort_asc(add_n(drop([5, 4, -1, -3, -4],2),-1))),-5) | [
5,
4,
-1,
-3,
-4
] |
input : list = [4, -3, 0]
output : list = [-11, 4] | [
-11,
4
] | generated_output : list = reverse(drop(add_n(sort_des(mul_n(input,5)),4),1)) | generated_output : list = reverse(drop(add_n(sort_des(mul_n([4, -3, 0],5)),4),1)) | [
4,
-3,
0
] |
input : list = [3, 0, 5, 4, 0]
output : list = [42, 27, 52, 47, 27] | [
42,
27,
52,
47,
27
] | generated_output : list = reverse(reverse(sub_n(mul_n(add_n(input,5),5),-2))) | generated_output : list = reverse(reverse(sub_n(mul_n(add_n([3, 0, 5, 4, 0],5),5),-2))) | [
3,
0,
5,
4,
0
] |
input : list = [-3, 0, -2, 5, -1]
output : list = [0, 1, 2, 3, 8] | [
0,
1,
2,
3,
8
] | generated_output : list = sort_asc(reverse(reverse(sub_n(sub_n(input,-5),2)))) | generated_output : list = sort_asc(reverse(reverse(sub_n(sub_n([-3, 0, -2, 5, -1],-5),2)))) | [
-3,
0,
-2,
5,
-1
] |
input : list = [3, -1]
output : list = [3, -1] | [
3,
-1
] | generated_output : list = sort_des(input) | generated_output : list = sort_des([3, -1]) | [
3,
-1
] |
input : list = [-1, -4, 4, -4]
output : list = [-39, -9, 9, 9] | [
-39,
-9,
9,
9
] | generated_output : list = mul_n(sort_asc(add_n(mul_n(sort_des(input),-2),-5)),3) | generated_output : list = mul_n(sort_asc(add_n(mul_n(sort_des([-1, -4, 4, -4]),-2),-5)),3) | [
-1,
-4,
4,
-4
] |
input : list = [-5, -3, 0, 5, -3]
output : list = [-24, 6, 24, 24, 36] | [
-24,
6,
24,
24,
36
] | generated_output : list = sub_n(sort_asc(mul_n(sub_n(mul_n(input,3),4),-2)),2) | generated_output : list = sub_n(sort_asc(mul_n(sub_n(mul_n([-5, -3, 0, 5, -3],3),4),-2)),2) | [
-5,
-3,
0,
5,
-3
] |
input : list = [3, 2, 1]
output : list = [-1, -2, -3] | [
-1,
-2,
-3
] | generated_output : list = sort_des(reverse(sub_n(sub_n(reverse(input),1),3))) | generated_output : list = sort_des(reverse(sub_n(sub_n(reverse([3, 2, 1]),1),3))) | [
3,
2,
1
] |
input : list = [-4, -1, -2, -3, 1, 5]
output : list = [-3, 1, 5] | [
-3,
1,
5
] | generated_output : list = drop(input,3) | generated_output : list = drop([-4, -1, -2, -3, 1, 5],3) | [
-4,
-1,
-2,
-3,
1,
5
] |
input : list = [2, 1]
output : list = [-2, -4] | [
-2,
-4
] | generated_output : list = sort_des(mul_n(input,-2)) | generated_output : list = sort_des(mul_n([2, 1],-2)) | [
2,
1
] |
input : list = [2, -1, -4, -2, 1]
output : list = [-4, -2, 1] | [
-4,
-2,
1
] | generated_output : list = add_n(sort_asc(sort_des(sub_n(drop(input,2),1))),1) | generated_output : list = add_n(sort_asc(sort_des(sub_n(drop([2, -1, -4, -2, 1],2),1))),1) | [
2,
-1,
-4,
-2,
1
] |
input : list = [-4, 2, 5, -5]
output : list = [96, -54] | [
96,
-54
] | generated_output : list = sub_n(mul_n(sort_des(mul_n(take(input,2),-5)),5),4) | generated_output : list = sub_n(mul_n(sort_des(mul_n(take([-4, 2, 5, -5],2),-5)),5),4) | [
-4,
2,
5,
-5
] |
input : list = [-2, 3, -2, 0]
output : list = [-5, -8, -10, -10] | [
-5,
-8,
-10,
-10
] | generated_output : list = reverse(add_n(sort_asc(sort_des(sub_n(input,4))),-4)) | generated_output : list = reverse(add_n(sort_asc(sort_des(sub_n([-2, 3, -2, 0],4))),-4)) | [
-2,
3,
-2,
0
] |
input : list = [-1, -2, -1, -3, -1]
output : list = [-1, -2, -1] | [
-1,
-2,
-1
] | generated_output : list = take(input,3) | generated_output : list = take([-1, -2, -1, -3, -1],3) | [
-1,
-2,
-1,
-3,
-1
] |
input : list = [1, 4, -5, 1]
output : list = [0, 3, -6, 0] | [
0,
3,
-6,
0
] | generated_output : list = take(take(take(add_n(add_n(input,-5),4),25),23),44) | generated_output : list = take(take(take(add_n(add_n([1, 4, -5, 1],-5),4),25),23),44) | [
1,
4,
-5,
1
] |
input : list = [-4, -1, -3, 4, -5]
output : list = [-16, -4, -12, 16, -20] | [
-16,
-4,
-12,
16,
-20
] | generated_output : list = mul_n(input,4) | generated_output : list = mul_n([-4, -1, -3, 4, -5],4) | [
-4,
-1,
-3,
4,
-5
] |
input : list = [4, -4]
output : list = [45, -51] | [
45,
-51
] | generated_output : list = mul_n(sub_n(reverse(add_n(mul_n(input,-4),3)),4),3) | generated_output : list = mul_n(sub_n(reverse(add_n(mul_n([4, -4],-4),3)),4),3) | [
4,
-4
] |
input : list = [2, 4]
output : list = [4, 2] | [
4,
2
] | generated_output : list = reverse(input) | generated_output : list = reverse([2, 4]) | [
2,
4
] |
input : list = [2, 2, -3, -4, 1, -5]
output : list = [-5, -4, -3, 1, 2, 2] | [
-5,
-4,
-3,
1,
2,
2
] | generated_output : list = sort_asc(sort_des(take(sort_asc(sort_asc(input)),30))) | generated_output : list = sort_asc(sort_des(take(sort_asc(sort_asc([2, 2, -3, -4, 1, -5])),30))) | [
2,
2,
-3,
-4,
1,
-5
] |
input : list = [-1, 0, -1]
output : list = [5, 10, 10] | [
5,
10,
10
] | generated_output : list = reverse(sort_des(sub_n(take(mul_n(input,-5),12),-5))) | generated_output : list = reverse(sort_des(sub_n(take(mul_n([-1, 0, -1],-5),12),-5))) | [
-1,
0,
-1
] |
input : list = [1, 2, 0, 2, 5, 2]
output : list = [60, 24, 24, 24, 12, 0] | [
60,
24,
24,
24,
12,
0
] | generated_output : list = sort_des(mul_n(sort_des(mul_n(sort_asc(input),-4)),-3)) | generated_output : list = sort_des(mul_n(sort_des(mul_n(sort_asc([1, 2, 0, 2, 5, 2]),-4)),-3)) | [
1,
2,
0,
2,
5,
2
] |
input : list = [5, 1, -2, 2, 3, 2]
output : list = [5, 1, -2] | [
5,
1,
-2
] | generated_output : list = take(input,3) | generated_output : list = take([5, 1, -2, 2, 3, 2],3) | [
5,
1,
-2,
2,
3,
2
] |
input : list = [0, 5]
output : list = [3, -2] | [
3,
-2
] | generated_output : list = sub_n(sort_des(sort_des(reverse(add_n(input,2)))),4) | generated_output : list = sub_n(sort_des(sort_des(reverse(add_n([0, 5],2)))),4) | [
0,
5
] |
input : list = [-5, 3]
output : list = [-2, 6] | [
-2,
6
] | generated_output : list = sort_asc(sort_asc(reverse(sub_n(add_n(input,4),1)))) | generated_output : list = sort_asc(sort_asc(reverse(sub_n(add_n([-5, 3],4),1)))) | [
-5,
3
] |
input : list = [1, -5, 1]
output : list = [-1, -1, 5] | [
-1,
-1,
5
] | generated_output : list = mul_n(sort_des(mul_n(take(sort_asc(input),14),1)),-1) | generated_output : list = mul_n(sort_des(mul_n(take(sort_asc([1, -5, 1]),14),1)),-1) | [
1,
-5,
1
] |
input : list = [5, 5, 5, -3, 4]
output : list = [25, -10] | [
25,
-10
] | generated_output : list = mul_n(take(sub_n(sort_des(drop(input,3)),-1),2),5) | generated_output : list = mul_n(take(sub_n(sort_des(drop([5, 5, 5, -3, 4],3)),-1),2),5) | [
5,
5,
5,
-3,
4
] |
input : list = [-1, 4, 3, -4, -1]
output : list = [4, 3, -1, -1, -4] | [
4,
3,
-1,
-1,
-4
] | generated_output : list = sort_des(input) | generated_output : list = sort_des([-1, 4, 3, -4, -1]) | [
-1,
4,
3,
-4,
-1
] |
input : list = [-2, 0, 5, 1, -2]
output : list = [-26, 4, 16] | [
-26,
4,
16
] | generated_output : list = sort_asc(sub_n(mul_n(mul_n(take(input,3),-2),3),-4)) | generated_output : list = sort_asc(sub_n(mul_n(mul_n(take([-2, 0, 5, 1, -2],3),-2),3),-4)) | [
-2,
0,
5,
1,
-2
] |
input : list = [1, 4]
output : list = [-3, -6] | [
-3,
-6
] | generated_output : list = sub_n(sort_des(add_n(sort_des(sort_asc(input)),-2)),5) | generated_output : list = sub_n(sort_des(add_n(sort_des(sort_asc([1, 4])),-2)),5) | [
1,
4
] |
input : list = [4, 3]
output : list = [9, 12] | [
9,
12
] | generated_output : list = reverse(sort_des(mul_n(input,3))) | generated_output : list = reverse(sort_des(mul_n([4, 3],3))) | [
4,
3
] |
input : list = [3, 5, -1, -2, 3, 3]
output : list = [-1, 3, 5] | [
-1,
3,
5
] | generated_output : list = drop(sort_asc(reverse(take(input,4))),1) | generated_output : list = drop(sort_asc(reverse(take([3, 5, -1, -2, 3, 3],4))),1) | [
3,
5,
-1,
-2,
3,
3
] |
input : list = [-5, -2, 5]
output : list = [9, 2, -1] | [
9,
2,
-1
] | generated_output : list = reverse(sort_asc(sort_des(sort_asc(sub_n(input,-4))))) | generated_output : list = reverse(sort_asc(sort_des(sort_asc(sub_n([-5, -2, 5],-4))))) | [
-5,
-2,
5
] |
input : list = [2, 0, 3, -3, -5]
output : list = [-5, -3, 3] | [
-5,
-3,
3
] | generated_output : list = sort_asc(sort_des(sort_asc(take(drop(input,2),8)))) | generated_output : list = sort_asc(sort_des(sort_asc(take(drop([2, 0, 3, -3, -5],2),8)))) | [
2,
0,
3,
-3,
-5
] |
input : list = [3, -4, -4, 1]
output : list = [7, -13, -13, 15] | [
7,
-13,
-13,
15
] | generated_output : list = reverse(add_n(take(take(mul_n(input,4),7),7),3)) | generated_output : list = reverse(add_n(take(take(mul_n([3, -4, -4, 1],4),7),7),3)) | [
3,
-4,
-4,
1
] |
input : list = [3, -1, -5]
output : list = [20, 8, -4] | [
20,
8,
-4
] | generated_output : list = sort_des(add_n(reverse(mul_n(reverse(input),-3)),5)) | generated_output : list = sort_des(add_n(reverse(mul_n(reverse([3, -1, -5]),-3)),5)) | [
3,
-1,
-5
] |
input : list = [-5, -2, -1, 4]
output : list = [-14, -11, -10, -5] | [
-14,
-11,
-10,
-5
] | generated_output : list = sort_asc(add_n(sort_asc(sort_asc(add_n(input,-4))),-5)) | generated_output : list = sort_asc(add_n(sort_asc(sort_asc(add_n([-5, -2, -1, 4],-4))),-5)) | [
-5,
-2,
-1,
4
] |
input : list = [2, -3, 5, -3]
output : list = [8, 0, 0] | [
8,
0,
0
] | generated_output : list = sort_des(add_n(reverse(reverse(drop(input,1))),3)) | generated_output : list = sort_des(add_n(reverse(reverse(drop([2, -3, 5, -3],1))),3)) | [
2,
-3,
5,
-3
] |
input : list = [5, -1, 0, 4, 5, 2]
output : list = [15, 15, 12, 6, 0, -3] | [
15,
15,
12,
6,
0,
-3
] | generated_output : list = reverse(sort_asc(mul_n(sort_des(input),3))) | generated_output : list = reverse(sort_asc(mul_n(sort_des([5, -1, 0, 4, 5, 2]),3))) | [
5,
-1,
0,
4,
5,
2
] |
input : list = [4, -5, 2]
output : list = [9, 30] | [
9,
30
] | generated_output : list = mul_n(add_n(drop(add_n(mul_n(input,1),3),1),5),3) | generated_output : list = mul_n(add_n(drop(add_n(mul_n([4, -5, 2],1),3),1),5),3) | [
4,
-5,
2
] |
input : list = [4, 4, 1]
output : list = [4, 4, 1] | [
4,
4,
1
] | generated_output : list = reverse(reverse(sort_des(sort_asc(input)))) | generated_output : list = reverse(reverse(sort_des(sort_asc([4, 4, 1])))) | [
4,
4,
1
] |
input : list = [5, -4, 1]
output : list = [0, -9, -4] | [
0,
-9,
-4
] | generated_output : list = sub_n(input,5) | generated_output : list = sub_n([5, -4, 1],5) | [
5,
-4,
1
] |
input : list = [1, 1, 5, 4]
output : list = [-1, 0, -4, -4] | [
-1,
0,
-4,
-4
] | generated_output : list = mul_n(take(take(reverse(sub_n(input,5)),28),19),1) | generated_output : list = mul_n(take(take(reverse(sub_n([1, 1, 5, 4],5)),28),19),1) | [
1,
1,
5,
4
] |
input : list = [1, -5, -3, 5, 5, -5]
output : list = [-4, -4, -2, 6, 6] | [
-4,
-4,
-2,
6,
6
] | generated_output : list = sort_asc(add_n(sort_des(take(drop(input,1),21)),1)) | generated_output : list = sort_asc(add_n(sort_des(take(drop([1, -5, -3, 5, 5, -5],1),21)),1)) | [
1,
-5,
-3,
5,
5,
-5
] |
input : list = [-3, 0]
output : list = [-3, 0] | [
-3,
0
] | generated_output : list = mul_n(reverse(take(reverse(sort_asc(input)),21)),1) | generated_output : list = mul_n(reverse(take(reverse(sort_asc([-3, 0])),21)),1) | [
-3,
0
] |
input : list = [-4, -3, 4, -3]
output : list = [-4] | [
-4
] | generated_output : list = take(input,1) | generated_output : list = take([-4, -3, 4, -3],1) | [
-4,
-3,
4,
-3
] |
input : list = [-4, -1, -2, 5, -1]
output : list = [1, 8, 2] | [
1,
8,
2
] | generated_output : list = add_n(drop(input,2),3) | generated_output : list = add_n(drop([-4, -1, -2, 5, -1],2),3) | [
-4,
-1,
-2,
5,
-1
] |
input : list = [2, -5, -2]
output : list = [2, -2, -5] | [
2,
-2,
-5
] | generated_output : list = sort_des(input) | generated_output : list = sort_des([2, -5, -2]) | [
2,
-5,
-2
] |
input : list = [-1, -4, 1]
output : list = [-4, -1, 1] | [
-4,
-1,
1
] | generated_output : list = sort_asc(sort_des(input)) | generated_output : list = sort_asc(sort_des([-1, -4, 1])) | [
-1,
-4,
1
] |
input : list = [-2, 2]
output : list = [-6, 10] | [
-6,
10
] | generated_output : list = reverse(take(sort_des(sub_n(mul_n(input,4),-2)),30)) | generated_output : list = reverse(take(sort_des(sub_n(mul_n([-2, 2],4),-2)),30)) | [
-2,
2
] |
input : list = [-2, 1]
output : list = [-5, -2] | [
-5,
-2
] | generated_output : list = reverse(reverse(sub_n(add_n(add_n(input,4),-4),3))) | generated_output : list = reverse(reverse(sub_n(add_n(add_n([-2, 1],4),-4),3))) | [
-2,
1
] |
input : list = [-5, 3, 5]
output : list = [3, 1] | [
3,
1
] | generated_output : list = add_n(sort_des(sort_asc(drop(input,1))),-2) | generated_output : list = add_n(sort_des(sort_asc(drop([-5, 3, 5],1))),-2) | [
-5,
3,
5
] |
input : list = [4, -1, -3, 5]
output : list = [-2, -3, -8, -10] | [
-2,
-3,
-8,
-10
] | generated_output : list = sub_n(add_n(sort_des(sub_n(reverse(input),4)),-4),-1) | generated_output : list = sub_n(add_n(sort_des(sub_n(reverse([4, -1, -3, 5]),4)),-4),-1) | [
4,
-1,
-3,
5
] |
input : list = [4, 3, -3]
output : list = [4] | [
4
] | generated_output : list = take(input,1) | generated_output : list = take([4, 3, -3],1) | [
4,
3,
-3
] |
input : list = [1, 5, -1, -4, 0, 1]
output : list = [-14, -2, 2, 6, 6, 22] | [
-14,
-2,
2,
6,
6,
22
] | generated_output : list = add_n(sort_asc(mul_n(sort_asc(sort_asc(input)),4)),2) | generated_output : list = add_n(sort_asc(mul_n(sort_asc(sort_asc([1, 5, -1, -4, 0, 1])),4)),2) | [
1,
5,
-1,
-4,
0,
1
] |
input : list = [2, 2, -4, -5, -4, -4]
output : list = [-3, -3, -9, -10, -9, -9] | [
-3,
-3,
-9,
-10,
-9,
-9
] | generated_output : list = sub_n(input,5) | generated_output : list = sub_n([2, 2, -4, -5, -4, -4],5) | [
2,
2,
-4,
-5,
-4,
-4
] |
input : list = [5, -2, 4]
output : list = [1, -5] | [
1,
-5
] | generated_output : list = sub_n(add_n(sort_des(drop(input,1)),-2),1) | generated_output : list = sub_n(add_n(sort_des(drop([5, -2, 4],1)),-2),1) | [
5,
-2,
4
] |
input : list = [3, 5, 0, -3]
output : list = [3] | [
3
] | generated_output : list = sort_asc(take(sort_des(reverse(take(input,1))),15)) | generated_output : list = sort_asc(take(sort_des(reverse(take([3, 5, 0, -3],1))),15)) | [
3,
5,
0,
-3
] |
input : list = [5, 5, -4, -2]
output : list = [10, 10, 45, 55] | [
10,
10,
45,
55
] | generated_output : list = sort_asc(mul_n(sub_n(sort_asc(sub_n(input,4)),3),-5)) | generated_output : list = sort_asc(mul_n(sub_n(sort_asc(sub_n([5, 5, -4, -2],4)),3),-5)) | [
5,
5,
-4,
-2
] |
input : list = [0, 1, -1]
output : list = [1, -1] | [
1,
-1
] | generated_output : list = drop(input,1) | generated_output : list = drop([0, 1, -1],1) | [
0,
1,
-1
] |
input : list = [3, -1, 3]
output : list = [-5, -1] | [
-5,
-1
] | generated_output : list = sort_asc(take(add_n(input,-4),2)) | generated_output : list = sort_asc(take(add_n([3, -1, 3],-4),2)) | [
3,
-1,
3
] |
input : list = [-3, 0]
output : list = [-20, -5] | [
-20,
-5
] | generated_output : list = take(mul_n(take(sort_asc(add_n(input,-1)),2),5),32) | generated_output : list = take(mul_n(take(sort_asc(add_n([-3, 0],-1)),2),5),32) | [
-3,
0
] |
input : list = [-1, -4]
output : list = [1, 4] | [
1,
4
] | generated_output : list = add_n(reverse(sort_des(input)),5) | generated_output : list = add_n(reverse(sort_des([-1, -4])),5) | [
-1,
-4
] |
input : list = [0, 4, 2, -1]
output : list = [2, 5, 7, 3] | [
2,
5,
7,
3
] | generated_output : list = sub_n(reverse(input),-3) | generated_output : list = sub_n(reverse([0, 4, 2, -1]),-3) | [
0,
4,
2,
-1
] |
input : list = [-5, -1, 3, -4, -5, -2]
output : list = [3, -1, -2, -4, -5, -5] | [
3,
-1,
-2,
-4,
-5,
-5
] | generated_output : list = take(sort_des(take(sort_asc(sort_asc(input)),14)),10) | generated_output : list = take(sort_des(take(sort_asc(sort_asc([-5, -1, 3, -4, -5, -2])),14)),10) | [
-5,
-1,
3,
-4,
-5,
-2
] |
input : list = [-5, 5]
output : list = [-4, 6] | [
-4,
6
] | generated_output : list = sort_asc(reverse(take(sort_asc(sub_n(input,-1)),18))) | generated_output : list = sort_asc(reverse(take(sort_asc(sub_n([-5, 5],-1)),18))) | [
-5,
5
] |
input : list = [5, -1, 0, 1]
output : list = [4, 3, 2, 8] | [
4,
3,
2,
8
] | generated_output : list = reverse(take(add_n(reverse(reverse(input)),3),31)) | generated_output : list = reverse(take(add_n(reverse(reverse([5, -1, 0, 1])),3),31)) | [
5,
-1,
0,
1
] |
input : list = [-2, 1, 5]
output : list = [5, 1, -2] | [
5,
1,
-2
] | generated_output : list = sort_des(input) | generated_output : list = sort_des([-2, 1, 5]) | [
-2,
1,
5
] |
input : list = [2, 2, -2, -1, -1]
output : list = [-18, -18, 6, 0, 0] | [
-18,
-18,
6,
0,
0
] | generated_output : list = reverse(reverse(mul_n(mul_n(sub_n(input,-1),-2),3))) | generated_output : list = reverse(reverse(mul_n(mul_n(sub_n([2, 2, -2, -1, -1],-1),-2),3))) | [
2,
2,
-2,
-1,
-1
] |
input : list = [-5, 3]
output : list = [2, -14] | [
2,
-14
] | generated_output : list = mul_n(sub_n(sort_asc(reverse(sub_n(input,-2))),-2),-2) | generated_output : list = mul_n(sub_n(sort_asc(reverse(sub_n([-5, 3],-2))),-2),-2) | [
-5,
3
] |
input : list = [-3, 4, 4, 5]
output : list = [-24, -19] | [
-24,
-19
] | generated_output : list = sub_n(mul_n(take(sort_des(drop(input,2)),27),-5),-1) | generated_output : list = sub_n(mul_n(take(sort_des(drop([-3, 4, 4, 5],2)),27),-5),-1) | [
-3,
4,
4,
5
] |
input : list = [-5, 3]
output : list = [13, -19] | [
13,
-19
] | generated_output : list = add_n(reverse(sub_n(mul_n(add_n(input,1),4),1)),-2) | generated_output : list = add_n(reverse(sub_n(mul_n(add_n([-5, 3],1),4),1)),-2) | [
-5,
3
] |
input : list = [-2, 3, 0, -4, 1, -5]
output : list = [-5, -4, -2, 0, 1, 3] | [
-5,
-4,
-2,
0,
1,
3
] | generated_output : list = sort_asc(take(reverse(sort_asc(input)),28)) | generated_output : list = sort_asc(take(reverse(sort_asc([-2, 3, 0, -4, 1, -5])),28)) | [
-2,
3,
0,
-4,
1,
-5
] |
input : list = [5, 0, -3, 1]
output : list = [6, 2, 5, 10] | [
6,
2,
5,
10
] | generated_output : list = add_n(reverse(reverse(sub_n(reverse(input),-3))),2) | generated_output : list = add_n(reverse(reverse(sub_n(reverse([5, 0, -3, 1]),-3))),2) | [
5,
0,
-3,
1
] |
input : list = [-4, 2, -4, 2]
output : list = [-12] | [
-12
] | generated_output : list = sub_n(sort_des(take(add_n(take(input,1),-3),9)),5) | generated_output : list = sub_n(sort_des(take(add_n(take([-4, 2, -4, 2],1),-3),9)),5) | [
-4,
2,
-4,
2
] |
input : list = [3, 4, 4, -2]
output : list = [-6, -8, -8, 4] | [
-6,
-8,
-8,
4
] | generated_output : list = mul_n(mul_n(mul_n(input,-1),2),1) | generated_output : list = mul_n(mul_n(mul_n([3, 4, 4, -2],-1),2),1) | [
3,
4,
4,
-2
] |
input : list = [1, -3]
output : list = [0, 4] | [
0,
4
] | generated_output : list = add_n(reverse(sub_n(sort_des(add_n(input,5)),-1)),-3) | generated_output : list = add_n(reverse(sub_n(sort_des(add_n([1, -3],5)),-1)),-3) | [
1,
-3
] |
input : list = [2, -1, 5]
output : list = [7, 4, 1] | [
7,
4,
1
] | generated_output : list = sort_des(add_n(input,2)) | generated_output : list = sort_des(add_n([2, -1, 5],2)) | [
2,
-1,
5
] |
input : list = [-5, -5, -5]
output : list = [-5, -5] | [
-5,
-5
] | generated_output : list = drop(input,1) | generated_output : list = drop([-5, -5, -5],1) | [
-5,
-5,
-5
] |
input : list = [5, 4, 0, 5]
output : list = [-1, -2, -6, -1] | [
-1,
-2,
-6,
-1
] | generated_output : list = add_n(add_n(input,-3),-3) | generated_output : list = add_n(add_n([5, 4, 0, 5],-3),-3) | [
5,
4,
0,
5
] |
input : list = [3, 2, 2]
output : list = [9, 6, 6] | [
9,
6,
6
] | generated_output : list = reverse(reverse(mul_n(input,3))) | generated_output : list = reverse(reverse(mul_n([3, 2, 2],3))) | [
3,
2,
2
] |
input : list = [5, -5]
output : list = [8, -2] | [
8,
-2
] | generated_output : list = sort_des(add_n(take(add_n(sort_asc(input),-1),10),4)) | generated_output : list = sort_des(add_n(take(add_n(sort_asc([5, -5]),-1),10),4)) | [
5,
-5
] |
input : list = [-5, 1, 3]
output : list = [-9, -11, -17] | [
-9,
-11,
-17
] | generated_output : list = sort_des(add_n(add_n(sort_asc(add_n(input,-4)),-5),-3)) | generated_output : list = sort_des(add_n(add_n(sort_asc(add_n([-5, 1, 3],-4)),-5),-3)) | [
-5,
1,
3
] |
input : list = [2, 3, -5, -3, 0, 3]
output : list = [-5, -3, 0, 2, 3, 3] | [
-5,
-3,
0,
2,
3,
3
] | generated_output : list = sort_asc(take(sort_des(sort_des(reverse(input))),8)) | generated_output : list = sort_asc(take(sort_des(sort_des(reverse([2, 3, -5, -3, 0, 3]))),8)) | [
2,
3,
-5,
-3,
0,
3
] |
input : list = [-4, 0, -2, 1, -4]
output : list = [4, 3, 1, -1, -1] | [
4,
3,
1,
-1,
-1
] | generated_output : list = sub_n(reverse(reverse(sort_des(sort_des(input)))),-3) | generated_output : list = sub_n(reverse(reverse(sort_des(sort_des([-4, 0, -2, 1, -4])))),-3) | [
-4,
0,
-2,
1,
-4
] |
input : list = [-5, 5, 1]
output : list = [-4, 2, 6] | [
-4,
2,
6
] | generated_output : list = sort_asc(sub_n(sub_n(reverse(sub_n(input,-5)),2),2)) | generated_output : list = sort_asc(sub_n(sub_n(reverse(sub_n([-5, 5, 1],-5)),2),2)) | [
-5,
5,
1
] |