input
stringlengths
41
91
io_out
sequence
output_masked
stringlengths
39
81
output
stringlengths
41
100
io_inp
sequence
input : list = [1, 1, 4, 1] output : list = [2, -1, -1, -1]
[ 2, -1, -1, -1 ]
generated_output : list = sort_des(sort_des(sub_n(reverse(input),2)))
generated_output : list = sort_des(sort_des(sub_n(reverse([1, 1, 4, 1]),2)))
[ 1, 1, 4, 1 ]
input : list = [0, 2, -3, 3] output : list = [-2, 6, -14, 10]
[ -2, 6, -14, 10 ]
generated_output : list = sub_n(mul_n(input,4),2)
generated_output : list = sub_n(mul_n([0, 2, -3, 3],4),2)
[ 0, 2, -3, 3 ]
input : list = [4, -4, -1, 5, 5, 3] output : list = [14, 6, 9, 15, 15, 13]
[ 14, 6, 9, 15, 15, 13 ]
generated_output : list = sub_n(sub_n(sub_n(sub_n(add_n(input,-3),-2),-2),-5),-4)
generated_output : list = sub_n(sub_n(sub_n(sub_n(add_n([4, -4, -1, 5, 5, 3],-3),-2),-2),-5),-4)
[ 4, -4, -1, 5, 5, 3 ]
input : list = [1, -4, -2, -2] output : list = [-1, -4, -4, -6]
[ -1, -4, -4, -6 ]
generated_output : list = sort_des(take(add_n(sort_asc(reverse(input)),-2),40))
generated_output : list = sort_des(take(add_n(sort_asc(reverse([1, -4, -2, -2])),-2),40))
[ 1, -4, -2, -2 ]
input : list = [1, 4, 1] output : list = [-3]
[ -3 ]
generated_output : list = reverse(take(sub_n(sort_asc(take(input,1)),4),30))
generated_output : list = reverse(take(sub_n(sort_asc(take([1, 4, 1],1)),4),30))
[ 1, 4, 1 ]
input : list = [-2, -3, 3, 2, 2, 1] output : list = [6, 9, 18, 21, 21, 24]
[ 6, 9, 18, 21, 21, 24 ]
generated_output : list = sort_asc(sort_asc(mul_n(add_n(add_n(input,2),3),3)))
generated_output : list = sort_asc(sort_asc(mul_n(add_n(add_n([-2, -3, 3, 2, 2, 1],2),3),3)))
[ -2, -3, 3, 2, 2, 1 ]
input : list = [-5, 2] output : list = [2, -5]
[ 2, -5 ]
generated_output : list = reverse(input)
generated_output : list = reverse([-5, 2])
[ -5, 2 ]
input : list = [2, -4, -4, 2] output : list = [-4, -4, 2, 2]
[ -4, -4, 2, 2 ]
generated_output : list = add_n(mul_n(take(add_n(sort_asc(input),-2),13),1),2)
generated_output : list = add_n(mul_n(take(add_n(sort_asc([2, -4, -4, 2]),-2),13),1),2)
[ 2, -4, -4, 2 ]
input : list = [-5, -2, -1, -5] output : list = [-12, 0, 36, 36]
[ -12, 0, 36, 36 ]
generated_output : list = mul_n(mul_n(take(add_n(sort_des(input),2),31),-4),3)
generated_output : list = mul_n(mul_n(take(add_n(sort_des([-5, -2, -1, -5]),2),31),-4),3)
[ -5, -2, -1, -5 ]
input : list = [3, 1] output : list = [3, 9]
[ 3, 9 ]
generated_output : list = mul_n(take(sort_asc(input),6),3)
generated_output : list = mul_n(take(sort_asc([3, 1]),6),3)
[ 3, 1 ]
input : list = [1, 4, 3, 4, -3] output : list = [-12, 4, 12, 16, 16]
[ -12, 4, 12, 16, 16 ]
generated_output : list = sort_asc(sort_des(sort_des(sort_asc(mul_n(input,4)))))
generated_output : list = sort_asc(sort_des(sort_des(sort_asc(mul_n([1, 4, 3, 4, -3],4)))))
[ 1, 4, 3, 4, -3 ]
input : list = [-3, 2, 0, -4, 5] output : list = [5, 2, 0, -3, -4]
[ 5, 2, 0, -3, -4 ]
generated_output : list = sort_des(input)
generated_output : list = sort_des([-3, 2, 0, -4, 5])
[ -3, 2, 0, -4, 5 ]
input : list = [5, 0, -5, 5] output : list = [16, 6, -4, -4]
[ 16, 6, -4, -4 ]
generated_output : list = mul_n(sort_asc(reverse(add_n(sort_des(input),-3))),-2)
generated_output : list = mul_n(sort_asc(reverse(add_n(sort_des([5, 0, -5, 5]),-3))),-2)
[ 5, 0, -5, 5 ]
input : list = [0, 2, -4, -5, -1] output : list = [30, 25, 10, 5, -5]
[ 30, 25, 10, 5, -5 ]
generated_output : list = add_n(sort_des(add_n(mul_n(reverse(input),-5),3)),2)
generated_output : list = add_n(sort_des(add_n(mul_n(reverse([0, 2, -4, -5, -1]),-5),3)),2)
[ 0, 2, -4, -5, -1 ]
input : list = [-1, 0, 4, 4] output : list = [-16, -16, 0, 4]
[ -16, -16, 0, 4 ]
generated_output : list = reverse(mul_n(input,-4))
generated_output : list = reverse(mul_n([-1, 0, 4, 4],-4))
[ -1, 0, 4, 4 ]
input : list = [-2, -4, -5, -4, -4, 3] output : list = [-7, -9, -10, -9, -9, -2]
[ -7, -9, -10, -9, -9, -2 ]
generated_output : list = take(add_n(input,-5),17)
generated_output : list = take(add_n([-2, -4, -5, -4, -4, 3],-5),17)
[ -2, -4, -5, -4, -4, 3 ]
input : list = [-4, -4] output : list = [-2, -2]
[ -2, -2 ]
generated_output : list = add_n(sort_asc(take(reverse(add_n(input,-3)),10)),5)
generated_output : list = add_n(sort_asc(take(reverse(add_n([-4, -4],-3)),10)),5)
[ -4, -4 ]
input : list = [1, -4, 3, -2] output : list = [-1, -3, -6, -8]
[ -1, -3, -6, -8 ]
generated_output : list = sort_des(take(sort_des(mul_n(sub_n(input,-5),-1)),26))
generated_output : list = sort_des(take(sort_des(mul_n(sub_n([1, -4, 3, -2],-5),-1)),26))
[ 1, -4, 3, -2 ]
input : list = [-3, 4, -4, -2, -1, 5] output : list = [0, 7, -1]
[ 0, 7, -1 ]
generated_output : list = sub_n(sub_n(add_n(take(input,3),-3),-5),-1)
generated_output : list = sub_n(sub_n(add_n(take([-3, 4, -4, -2, -1, 5],3),-3),-5),-1)
[ -3, 4, -4, -2, -1, 5 ]
input : list = [-4, 2] output : list = [-1, -7]
[ -1, -7 ]
generated_output : list = add_n(take(reverse(sort_asc(sort_asc(input))),20),-3)
generated_output : list = add_n(take(reverse(sort_asc(sort_asc([-4, 2]))),20),-3)
[ -4, 2 ]
input : list = [4, 1, 3, -2] output : list = [8]
[ 8 ]
generated_output : list = take(sort_des(add_n(take(input,1),4)),22)
generated_output : list = take(sort_des(add_n(take([4, 1, 3, -2],1),4)),22)
[ 4, 1, 3, -2 ]
input : list = [3, 4, 5] output : list = [4, 5]
[ 4, 5 ]
generated_output : list = reverse(take(reverse(sort_asc(drop(input,1))),17))
generated_output : list = reverse(take(reverse(sort_asc(drop([3, 4, 5],1))),17))
[ 3, 4, 5 ]
input : list = [0, 0, 0, -3] output : list = [-3, 0, 0, 0]
[ -3, 0, 0, 0 ]
generated_output : list = add_n(sort_asc(add_n(sort_des(sub_n(input,-3)),2)),-5)
generated_output : list = add_n(sort_asc(add_n(sort_des(sub_n([0, 0, 0, -3],-3)),2)),-5)
[ 0, 0, 0, -3 ]
input : list = [3, 1] output : list = [-13, -9]
[ -13, -9 ]
generated_output : list = reverse(sub_n(sub_n(mul_n(sort_asc(input),-2),4),3))
generated_output : list = reverse(sub_n(sub_n(mul_n(sort_asc([3, 1]),-2),4),3))
[ 3, 1 ]
input : list = [0, -2, 2, 2] output : list = [-2, -2, -4, -6]
[ -2, -2, -4, -6 ]
generated_output : list = sort_des(sort_asc(sub_n(input,4)))
generated_output : list = sort_des(sort_asc(sub_n([0, -2, 2, 2],4)))
[ 0, -2, 2, 2 ]
input : list = [-4, 3, -4, 3] output : list = [5, 5, 40, 40]
[ 5, 5, 40, 40 ]
generated_output : list = mul_n(sort_des(sub_n(sub_n(reverse(input),2),2)),-5)
generated_output : list = mul_n(sort_des(sub_n(sub_n(reverse([-4, 3, -4, 3]),2),2)),-5)
[ -4, 3, -4, 3 ]
input : list = [-4, -5] output : list = [-2, -3]
[ -2, -3 ]
generated_output : list = sort_des(sub_n(input,-2))
generated_output : list = sort_des(sub_n([-4, -5],-2))
[ -4, -5 ]
input : list = [-5, 3, 0, 0, 5] output : list = [35, 10, -5]
[ 35, 10, -5 ]
generated_output : list = sort_des(mul_n(take(add_n(take(input,3),-2),16),-5))
generated_output : list = sort_des(mul_n(take(add_n(take([-5, 3, 0, 0, 5],3),-2),16),-5))
[ -5, 3, 0, 0, 5 ]
input : list = [-1, -5, 2, -4, -3] output : list = [-3, 1, 4]
[ -3, 1, 4 ]
generated_output : list = sort_asc(reverse(add_n(reverse(take(input,3)),2)))
generated_output : list = sort_asc(reverse(add_n(reverse(take([-1, -5, 2, -4, -3],3)),2)))
[ -1, -5, 2, -4, -3 ]
input : list = [1, 3, 4] output : list = [6, 8, 9]
[ 6, 8, 9 ]
generated_output : list = sub_n(input,-5)
generated_output : list = sub_n([1, 3, 4],-5)
[ 1, 3, 4 ]
input : list = [-2, 4, -4, -5, -5, -1] output : list = [4, -1, -2, -4, -5, -5]
[ 4, -1, -2, -4, -5, -5 ]
generated_output : list = sort_des(reverse(sub_n(add_n(sort_asc(input),-3),-3)))
generated_output : list = sort_des(reverse(sub_n(add_n(sort_asc([-2, 4, -4, -5, -5, -1]),-3),-3)))
[ -2, 4, -4, -5, -5, -1 ]
input : list = [1, 5, 1, 0, -4] output : list = [-10, -2]
[ -10, -2 ]
generated_output : list = mul_n(take(mul_n(reverse(take(input,2)),-1),22),2)
generated_output : list = mul_n(take(mul_n(reverse(take([1, 5, 1, 0, -4],2)),-1),22),2)
[ 1, 5, 1, 0, -4 ]
input : list = [-1, 5, 3, -2] output : list = [-36, -12, 36, 48]
[ -36, -12, 36, 48 ]
generated_output : list = mul_n(mul_n(sort_des(mul_n(add_n(input,-2),2)),-3),2)
generated_output : list = mul_n(mul_n(sort_des(mul_n(add_n([-1, 5, 3, -2],-2),2)),-3),2)
[ -1, 5, 3, -2 ]
input : list = [-2, 3, 4, 0, -3, -1] output : list = [0, 1, 2, 3, 6, 7]
[ 0, 1, 2, 3, 6, 7 ]
generated_output : list = sort_asc(add_n(reverse(sort_asc(add_n(input,1))),2))
generated_output : list = sort_asc(add_n(reverse(sort_asc(add_n([-2, 3, 4, 0, -3, -1],1))),2))
[ -2, 3, 4, 0, -3, -1 ]
input : list = [3, 0, -3] output : list = [-15, 0, 15]
[ -15, 0, 15 ]
generated_output : list = sort_asc(sort_asc(mul_n(input,5)))
generated_output : list = sort_asc(sort_asc(mul_n([3, 0, -3],5)))
[ 3, 0, -3 ]
input : list = [-3, -5] output : list = [1]
[ 1 ]
generated_output : list = sub_n(sort_asc(drop(add_n(sort_asc(input),1),1)),-3)
generated_output : list = sub_n(sort_asc(drop(add_n(sort_asc([-3, -5]),1),1)),-3)
[ -3, -5 ]
input : list = [0, -1, -5] output : list = [-5, -1, 0]
[ -5, -1, 0 ]
generated_output : list = reverse(sub_n(sub_n(input,-3),3))
generated_output : list = reverse(sub_n(sub_n([0, -1, -5],-3),3))
[ 0, -1, -5 ]
input : list = [2, 3] output : list = [2, 3]
[ 2, 3 ]
generated_output : list = sort_asc(reverse(input))
generated_output : list = sort_asc(reverse([2, 3]))
[ 2, 3 ]
input : list = [0, -2, 1, 3, -2] output : list = [45, 45, 21, 9, -15]
[ 45, 45, 21, 9, -15 ]
generated_output : list = sub_n(mul_n(sort_asc(mul_n(sub_n(input,2),3)),-4),3)
generated_output : list = sub_n(mul_n(sort_asc(mul_n(sub_n([0, -2, 1, 3, -2],2),3)),-4),3)
[ 0, -2, 1, 3, -2 ]
input : list = [-1, 2, 3, 0] output : list = [-20, -26, -24, -18]
[ -20, -26, -24, -18 ]
generated_output : list = mul_n(reverse(sub_n(sub_n(sub_n(input,-5),-4),-1)),-2)
generated_output : list = mul_n(reverse(sub_n(sub_n(sub_n([-1, 2, 3, 0],-5),-4),-1)),-2)
[ -1, 2, 3, 0 ]
input : list = [3, 5] output : list = [17, 27]
[ 17, 27 ]
generated_output : list = add_n(mul_n(input,5),2)
generated_output : list = add_n(mul_n([3, 5],5),2)
[ 3, 5 ]
input : list = [-3, -4, 3, 4] output : list = [-8, -10, 4, 6]
[ -8, -10, 4, 6 ]
generated_output : list = mul_n(add_n(reverse(reverse(add_n(input,-2))),1),2)
generated_output : list = mul_n(add_n(reverse(reverse(add_n([-3, -4, 3, 4],-2))),1),2)
[ -3, -4, 3, 4 ]
input : list = [-2, -3, 1, -4, -2, -4] output : list = [4, 1, -1, -1]
[ 4, 1, -1, -1 ]
generated_output : list = sort_des(add_n(drop(input,2),3))
generated_output : list = sort_des(add_n(drop([-2, -3, 1, -4, -2, -4],2),3))
[ -2, -3, 1, -4, -2, -4 ]
input : list = [-4, 5, -5, -2, 4, -3] output : list = [-8, 1]
[ -8, 1 ]
generated_output : list = take(add_n(take(take(input,2),23),-4),11)
generated_output : list = take(add_n(take(take([-4, 5, -5, -2, 4, -3],2),23),-4),11)
[ -4, 5, -5, -2, 4, -3 ]
input : list = [0, 4, -4, 4] output : list = [-24, -8, 8, 8]
[ -24, -8, 8, 8 ]
generated_output : list = take(reverse(sort_des(mul_n(add_n(input,-2),4))),7)
generated_output : list = take(reverse(sort_des(mul_n(add_n([0, 4, -4, 4],-2),4))),7)
[ 0, 4, -4, 4 ]
input : list = [-3, -5, 0, 0, -2] output : list = [4, 4, 2, 1, -1]
[ 4, 4, 2, 1, -1 ]
generated_output : list = sub_n(add_n(sort_des(add_n(input,4)),-1),-1)
generated_output : list = sub_n(add_n(sort_des(add_n([-3, -5, 0, 0, -2],4)),-1),-1)
[ -3, -5, 0, 0, -2 ]
input : list = [5, 0, -2, 1, 2, 3] output : list = [5, 4, 3]
[ 5, 4, 3 ]
generated_output : list = sort_des(sub_n(sort_asc(sort_des(drop(input,3))),-2))
generated_output : list = sort_des(sub_n(sort_asc(sort_des(drop([5, 0, -2, 1, 2, 3],3))),-2))
[ 5, 0, -2, 1, 2, 3 ]
input : list = [-3, -2, 5, -4, 2, -4] output : list = [6, 3, -18, 9, -9, 9]
[ 6, 3, -18, 9, -9, 9 ]
generated_output : list = mul_n(mul_n(sub_n(input,-1),-1),3)
generated_output : list = mul_n(mul_n(sub_n([-3, -2, 5, -4, 2, -4],-1),-1),3)
[ -3, -2, 5, -4, 2, -4 ]
input : list = [-3, -2, 3, 2] output : list = [-8, -6, 2, 4]
[ -8, -6, 2, 4 ]
generated_output : list = reverse(add_n(sub_n(mul_n(sort_asc(input),-2),-2),-4))
generated_output : list = reverse(add_n(sub_n(mul_n(sort_asc([-3, -2, 3, 2]),-2),-2),-4))
[ -3, -2, 3, 2 ]
input : list = [4, 4] output : list = [8, 8]
[ 8, 8 ]
generated_output : list = reverse(sort_des(reverse(reverse(sub_n(input,-4)))))
generated_output : list = reverse(sort_des(reverse(reverse(sub_n([4, 4],-4)))))
[ 4, 4 ]
input : list = [-3, -4, 3, 3, -1, 1] output : list = [1, 1, -1, -3, -5, -6]
[ 1, 1, -1, -3, -5, -6 ]
generated_output : list = reverse(add_n(reverse(sort_des(reverse(input))),-2))
generated_output : list = reverse(add_n(reverse(sort_des(reverse([-3, -4, 3, 3, -1, 1]))),-2))
[ -3, -4, 3, 3, -1, 1 ]
input : list = [0, 0, -1, -1, -3, 1] output : list = [-3, -3]
[ -3, -3 ]
generated_output : list = add_n(sort_asc(sort_des(sub_n(take(input,2),-2))),-5)
generated_output : list = add_n(sort_asc(sort_des(sub_n(take([0, 0, -1, -1, -3, 1],2),-2))),-5)
[ 0, 0, -1, -1, -3, 1 ]
input : list = [-1, 1, -1, -4, 2] output : list = [-11]
[ -11 ]
generated_output : list = sub_n(reverse(add_n(drop(sub_n(input,4),4),-4)),5)
generated_output : list = sub_n(reverse(add_n(drop(sub_n([-1, 1, -1, -4, 2],4),4),-4)),5)
[ -1, 1, -1, -4, 2 ]
input : list = [3, 0, -1] output : list = [1, 0, -3]
[ 1, 0, -3 ]
generated_output : list = take(sort_des(sort_asc(reverse(mul_n(input,-1)))),37)
generated_output : list = take(sort_des(sort_asc(reverse(mul_n([3, 0, -1],-1)))),37)
[ 3, 0, -1 ]
input : list = [-5, -3, 3] output : list = [-10]
[ -10 ]
generated_output : list = mul_n(take(input,1),2)
generated_output : list = mul_n(take([-5, -3, 3],1),2)
[ -5, -3, 3 ]
input : list = [2, -3, -2] output : list = [6]
[ 6 ]
generated_output : list = sort_asc(mul_n(reverse(mul_n(take(input,1),1)),3))
generated_output : list = sort_asc(mul_n(reverse(mul_n(take([2, -3, -2],1),1)),3))
[ 2, -3, -2 ]
input : list = [5, 0, -3, 1, -5, -3] output : list = [3, -2, -5, -1, -7, -5]
[ 3, -2, -5, -1, -7, -5 ]
generated_output : list = add_n(input,-2)
generated_output : list = add_n([5, 0, -3, 1, -5, -3],-2)
[ 5, 0, -3, 1, -5, -3 ]
input : list = [-3, -4, 2] output : list = [2, -3, -4]
[ 2, -3, -4 ]
generated_output : list = take(sort_des(input),14)
generated_output : list = take(sort_des([-3, -4, 2]),14)
[ -3, -4, 2 ]
input : list = [-3, 3] output : list = [6, -6]
[ 6, -6 ]
generated_output : list = sub_n(add_n(mul_n(reverse(input),2),1),1)
generated_output : list = sub_n(add_n(mul_n(reverse([-3, 3]),2),1),1)
[ -3, 3 ]
input : list = [4, -5] output : list = [3, -6]
[ 3, -6 ]
generated_output : list = sort_des(sort_asc(sub_n(sub_n(sort_des(input),5),-4)))
generated_output : list = sort_des(sort_asc(sub_n(sub_n(sort_des([4, -5]),5),-4)))
[ 4, -5 ]
input : list = [-3, -5] output : list = [25, 15]
[ 25, 15 ]
generated_output : list = sort_des(take(reverse(reverse(mul_n(input,-5))),25))
generated_output : list = sort_des(take(reverse(reverse(mul_n([-3, -5],-5))),25))
[ -3, -5 ]
input : list = [-4, 4, 0, 3, 4] output : list = [-8, -8, -6, 0, 8]
[ -8, -8, -6, 0, 8 ]
generated_output : list = take(sort_asc(add_n(sub_n(mul_n(input,-2),-3),-3)),13)
generated_output : list = take(sort_asc(add_n(sub_n(mul_n([-4, 4, 0, 3, 4],-2),-3),-3)),13)
[ -4, 4, 0, 3, 4 ]
input : list = [-4, 2, 2, -1, 4, -3] output : list = [7, 5, 5, 2, 0, -1]
[ 7, 5, 5, 2, 0, -1 ]
generated_output : list = sort_des(sub_n(input,-3))
generated_output : list = sort_des(sub_n([-4, 2, 2, -1, 4, -3],-3))
[ -4, 2, 2, -1, 4, -3 ]
input : list = [-5, 3, 4] output : list = [0, 4, 36]
[ 0, 4, 36 ]
generated_output : list = sub_n(mul_n(sort_des(reverse(sub_n(input,5))),-4),4)
generated_output : list = sub_n(mul_n(sort_des(reverse(sub_n([-5, 3, 4],5))),-4),4)
[ -5, 3, 4 ]
input : list = [-1, -1, 1, 0, 3, 2] output : list = [-6, -6]
[ -6, -6 ]
generated_output : list = sub_n(add_n(take(mul_n(mul_n(input,3),2),2),-4),-4)
generated_output : list = sub_n(add_n(take(mul_n(mul_n([-1, -1, 1, 0, 3, 2],3),2),2),-4),-4)
[ -1, -1, 1, 0, 3, 2 ]
input : list = [-1, 4, -1, 0, 3, 0] output : list = [-6, -1, -6]
[ -6, -1, -6 ]
generated_output : list = take(sub_n(take(take(input,3),18),5),38)
generated_output : list = take(sub_n(take(take([-1, 4, -1, 0, 3, 0],3),18),5),38)
[ -1, 4, -1, 0, 3, 0 ]
input : list = [-2, 4, 4, -1, -4, 5] output : list = [8, -1, 2, 7, 7, 1]
[ 8, -1, 2, 7, 7, 1 ]
generated_output : list = take(reverse(sub_n(input,-3)),25)
generated_output : list = take(reverse(sub_n([-2, 4, 4, -1, -4, 5],-3)),25)
[ -2, 4, 4, -1, -4, 5 ]
input : list = [4, 1, -2, -2] output : list = [24, 24, 6, -12]
[ 24, 24, 6, -12 ]
generated_output : list = sort_des(sort_des(mul_n(mul_n(add_n(input,-2),-3),2)))
generated_output : list = sort_des(sort_des(mul_n(mul_n(add_n([4, 1, -2, -2],-2),-3),2)))
[ 4, 1, -2, -2 ]
input : list = [2, -2, 3, -2, 2] output : list = [18, 18, -22, -22, -32]
[ 18, 18, -22, -22, -32 ]
generated_output : list = sub_n(mul_n(take(mul_n(sort_asc(input),-5),27),2),2)
generated_output : list = sub_n(mul_n(take(mul_n(sort_asc([2, -2, 3, -2, 2]),-5),27),2),2)
[ 2, -2, 3, -2, 2 ]
input : list = [4, -3, -2, -5, -4, 5] output : list = [-7, -6, -5, 1, 2]
[ -7, -6, -5, 1, 2 ]
generated_output : list = add_n(sub_n(drop(reverse(sort_des(input)),1),4),1)
generated_output : list = add_n(sub_n(drop(reverse(sort_des([4, -3, -2, -5, -4, 5])),1),4),1)
[ 4, -3, -2, -5, -4, 5 ]
input : list = [2, 4, -1] output : list = [4, 8, -2]
[ 4, 8, -2 ]
generated_output : list = mul_n(input,2)
generated_output : list = mul_n([2, 4, -1],2)
[ 2, 4, -1 ]
input : list = [3, 4, -4, 0, -2, -2] output : list = [4, 3, 0, -2, -2, -4]
[ 4, 3, 0, -2, -2, -4 ]
generated_output : list = add_n(add_n(sort_des(add_n(add_n(input,-3),4)),3),-4)
generated_output : list = add_n(add_n(sort_des(add_n(add_n([3, 4, -4, 0, -2, -2],-3),4)),3),-4)
[ 3, 4, -4, 0, -2, -2 ]
input : list = [0, 2, 4, -3, 1, 4] output : list = [1, 1, -1, -2, -3, -6]
[ 1, 1, -1, -2, -3, -6 ]
generated_output : list = sub_n(sub_n(reverse(reverse(sort_des(input))),4),-1)
generated_output : list = sub_n(sub_n(reverse(reverse(sort_des([0, 2, 4, -3, 1, 4]))),4),-1)
[ 0, 2, 4, -3, 1, 4 ]
input : list = [-5, 2, 1] output : list = [1, 0, -6]
[ 1, 0, -6 ]
generated_output : list = sort_des(sub_n(reverse(reverse(add_n(input,3))),4))
generated_output : list = sort_des(sub_n(reverse(reverse(add_n([-5, 2, 1],3))),4))
[ -5, 2, 1 ]
input : list = [-5, 2, -4, -2, 1] output : list = [-5]
[ -5 ]
generated_output : list = take(input,1)
generated_output : list = take([-5, 2, -4, -2, 1],1)
[ -5, 2, -4, -2, 1 ]
input : list = [-1, -4, 1, 4, -1, -3] output : list = [-4]
[ -4 ]
generated_output : list = sub_n(sort_des(add_n(sub_n(take(input,1),3),-1)),-1)
generated_output : list = sub_n(sort_des(add_n(sub_n(take([-1, -4, 1, 4, -1, -3],1),3),-1)),-1)
[ -1, -4, 1, 4, -1, -3 ]
input : list = [2, -3, 3, -3, -3] output : list = [4, -1, 5, -1, -1]
[ 4, -1, 5, -1, -1 ]
generated_output : list = add_n(input,2)
generated_output : list = add_n([2, -3, 3, -3, -3],2)
[ 2, -3, 3, -3, -3 ]
input : list = [0, -4, 5, 3] output : list = [-6, -2, 1, 3]
[ -6, -2, 1, 3 ]
generated_output : list = sort_asc(sort_asc(take(add_n(sort_des(input),-2),13)))
generated_output : list = sort_asc(sort_asc(take(add_n(sort_des([0, -4, 5, 3]),-2),13)))
[ 0, -4, 5, 3 ]
input : list = [3, -3, 5] output : list = [8, 2, 10]
[ 8, 2, 10 ]
generated_output : list = sub_n(add_n(input,1),-4)
generated_output : list = sub_n(add_n([3, -3, 5],1),-4)
[ 3, -3, 5 ]
input : list = [-1, 5] output : list = [-8]
[ -8 ]
generated_output : list = add_n(sort_des(drop(add_n(reverse(input),-5),1)),-2)
generated_output : list = add_n(sort_des(drop(add_n(reverse([-1, 5]),-5),1)),-2)
[ -1, 5 ]
input : list = [3, 0, 4, 5, -2, 2] output : list = [7, 3, 10, 9, 5, 8]
[ 7, 3, 10, 9, 5, 8 ]
generated_output : list = take(add_n(reverse(input),5),22)
generated_output : list = take(add_n(reverse([3, 0, 4, 5, -2, 2]),5),22)
[ 3, 0, 4, 5, -2, 2 ]
input : list = [-5, 2, 0, 0, -5] output : list = [-30, -30, 0, 0, 12]
[ -30, -30, 0, 0, 12 ]
generated_output : list = mul_n(mul_n(sort_asc(sort_asc(reverse(input))),2),3)
generated_output : list = mul_n(mul_n(sort_asc(sort_asc(reverse([-5, 2, 0, 0, -5]))),2),3)
[ -5, 2, 0, 0, -5 ]
input : list = [3, -4] output : list = [-30, 5]
[ -30, 5 ]
generated_output : list = mul_n(sort_des(sort_des(sub_n(sort_des(input),-3))),-5)
generated_output : list = mul_n(sort_des(sort_des(sub_n(sort_des([3, -4]),-3))),-5)
[ 3, -4 ]
input : list = [0, 4, -4, -3, 0, 5] output : list = [-3, 2, 5, 6, -2, 2]
[ -3, 2, 5, 6, -2, 2 ]
generated_output : list = mul_n(sub_n(mul_n(sub_n(reverse(input),5),1),-3),-1)
generated_output : list = mul_n(sub_n(mul_n(sub_n(reverse([0, 4, -4, -3, 0, 5]),5),1),-3),-1)
[ 0, 4, -4, -3, 0, 5 ]
input : list = [-1, 2, 1, 3] output : list = [3, 2, 1, -1]
[ 3, 2, 1, -1 ]
generated_output : list = sort_des(input)
generated_output : list = sort_des([-1, 2, 1, 3])
[ -1, 2, 1, 3 ]
input : list = [3, -3, 0, 4, -2] output : list = [3, -3]
[ 3, -3 ]
generated_output : list = take(input,2)
generated_output : list = take([3, -3, 0, 4, -2],2)
[ 3, -3, 0, 4, -2 ]
input : list = [3, -2, -2, 4] output : list = [4, 3, -2, -2]
[ 4, 3, -2, -2 ]
generated_output : list = sort_des(input)
generated_output : list = sort_des([3, -2, -2, 4])
[ 3, -2, -2, 4 ]
input : list = [3, 0, -5, -4, 2] output : list = [-8, -7, -1]
[ -8, -7, -1 ]
generated_output : list = sub_n(reverse(reverse(take(drop(input,2),11))),3)
generated_output : list = sub_n(reverse(reverse(take(drop([3, 0, -5, -4, 2],2),11))),3)
[ 3, 0, -5, -4, 2 ]
input : list = [-5, -1, -1] output : list = [25, 5, 5]
[ 25, 5, 5 ]
generated_output : list = sort_des(reverse(reverse(take(mul_n(input,-5),4))))
generated_output : list = sort_des(reverse(reverse(take(mul_n([-5, -1, -1],-5),4))))
[ -5, -1, -1 ]
input : list = [0, 0, 2, 1, 3] output : list = [9, 6, 3, 0, 0]
[ 9, 6, 3, 0, 0 ]
generated_output : list = mul_n(sort_des(input),3)
generated_output : list = mul_n(sort_des([0, 0, 2, 1, 3]),3)
[ 0, 0, 2, 1, 3 ]
input : list = [5, 1, 5, 1, 0] output : list = [4, 0, 4, 0, -1]
[ 4, 0, 4, 0, -1 ]
generated_output : list = take(take(reverse(sub_n(reverse(input),1)),35),47)
generated_output : list = take(take(reverse(sub_n(reverse([5, 1, 5, 1, 0]),1)),35),47)
[ 5, 1, 5, 1, 0 ]
input : list = [3, -1, 0, 4, 1] output : list = [-15, 5, 0, -20, -5]
[ -15, 5, 0, -20, -5 ]
generated_output : list = mul_n(input,-5)
generated_output : list = mul_n([3, -1, 0, 4, 1],-5)
[ 3, -1, 0, 4, 1 ]