You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
192 B
15 lines
192 B
#!/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)
|