📅  最后修改于: 2022-03-11 14:56:25.709000             🧑  作者: Mango
import itertools
def solve(string):
for c in itertools.permutations(string, min(len(string), 3)):
if int(''.join(c)) % 8 == 0:
return 'YES'
return 'NO'