#!/usr/bin/python3 from z3 import * # Prices: 215, 275, 335, 355, 420, 580 # Sum: 1505 s = Solver() a,b,c,d,e,f = Ints("a b c d e f") if s.check() == sat: m = s.model() print(m)