コード例 #1
0
def find_possible_combinations(score):
    for i in range(1, len(jumps)):
        for j in combinations(jumps.keys(), i):
            if sum([jumps[v] for v in j]) == score:
                yield lcm(*j)
コード例 #2
0
from Utilities.gcd import lcm

if __name__ == '__main__':
    print lcm(*range(1, 21))
コード例 #3
0
from Utilities.gcd import lcm

if __name__ == '__main__':
    print lcm(*range(1,21))
コード例 #4
0
from Utilities.gcd import lcm

if __name__ == '__main__':
    print(lcm(*list(range(1, 21))))