Answers for "Manasa loves Maths"

0

Manasa loves Maths

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'
Posted by: Guest on October-04-2021

Browse Popular Code Answers by Language