def merge(f_list):
    """
    Merge two polynomials into a single polynomial f.

    Input:
    [f0, f1]    A list of two polynomials

    Output:
    f           A polynomial

    Format:     Coefficient
    """
    f0, f1 = f_list
    n = 2 * len(f0)
    f = [0] * n
    for i in range(n // 2):
        f[2 * i + 0] = f0[i]
        f[2 * i + 1] = f1[i]
    return f