#
# 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
#
#
# @param numbers int整型一维数组
# @return bool布尔型
#
class Solution:
    def IsContinuous(self, numbers: List[int]) -> bool:
        # write code here
        res = []
        for x in numbers:#统计所有非0牌
            if x>0:
                res += [x]
        if max(res)-min(res)<=4 and len(res)==len(set(res)):#如果非0牌无重复,且最大差值不超过4,则说明可以构成
            return True
        return False