#-*- coding:utf-8 -*-
import numpy as np

class Solution():
    def solve(self, A):
        f = np.array([2.0, 0.0, -1.0, 1.0])
        g = np.array(A)
        return np.poly1d(f) * np.poly1d(g)
3d8414fa9ed186c8ffe984e07326463ecff434a9
<mask token>

<mask token>


class Solution:
    <mask token>

<mask token>


class Solution:

    def solve(self, A):
        f = np.array([2.0, 0.0, -1.0, 1.0])
        g = np.array(A)
        return np.poly1d(f) * np.poly1d(g)

import numpy as np


class Solution:

    def solve(self, A):
        f = np.array([2.0, 0.0, -1.0, 1.0])
        g = np.array(A)
        return np.poly1d(f) * np.poly1d(g)

#-*- coding:utf-8 -*-
import numpy as np

class Solution():
    def solve(self, A):
        f = np.array([2.0, 0.0, -1.0, 1.0])
        g = np.array(A)
        return np.poly1d(f) * np.poly1d(g)