def dup_quo_ground(f, c, K):
    """
    Quotient by a constant in ``K[x]``.

    **Examples**

    >>> from sympy.polys.domains import ZZ, QQ
    >>> from sympy.polys.densearith import dup_quo_ground

    >>> f = ZZ.map([3, 0, 2])
    >>> g = QQ.map([3, 0, 2])

    >>> dup_quo_ground(f, ZZ(2), ZZ)
    [1, 0, 1]

    >>> dup_quo_ground(g, QQ(2), QQ)
    [3/2, 0/1, 1/1]

    """
    if not c:
        raise ZeroDivisionError('polynomial division')
    if not f:
        return f

    if K.has_Field or not K.is_Exact:
        return [ K.quo(cf, c) for cf in f ]
    else:
        return [ cf // c for cf in f ]