Reversing
z3 사용
MyriaBreak
2019. 9. 23. 23:34
from z3 import *s = Solver()x1 = Int('x1')x2 = Int('x2')x3 = Int('x3')x4 = Int('x4')x5 = Int('x5')s.add(x1 + x2 + x3 + x4 + x5 == x1*x2*x3*x4*x5)print s.check()print s.model()
123456789101112131415 from z3 import *s = Solver()# 변수들x1 = Int('x1')x2 = Int('x2')x3 = Int('x3')x4 = Int('x4')x5 = Int('x5')s.add(x1 + x2 + x3 + x4 + x5 == x1*x2*x3*x4*x5) # 조건식print s.check()print s.model()cs