1
0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.

11 lines
195 B
MiniZinc

include "alldifferent.mzn";
array[1..15] of var bool: b;
array[1..4] of var 1..10: x;
constraint alldifferent(x) /\ sum(i in 1..4)(x[i]) = 9;
solve satisfy;
output ["b = \(b);\nx = \(x);\n"]