git-subtree-dir: software/minizinc git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
31 lines
456 B
MiniZinc
31 lines
456 B
MiniZinc
/***
|
|
!Test
|
|
expected:
|
|
- !Result
|
|
solution: !Solution
|
|
a:
|
|
- [true, true, true]
|
|
- [true, true, false]
|
|
- [true, false, false]
|
|
***/
|
|
|
|
include "tenpenki.mzn.model";
|
|
|
|
nrows = 3;
|
|
ncols = 3;
|
|
|
|
constraint row_constraint(1, [3]);
|
|
constraint row_constraint(2, [2]);
|
|
constraint row_constraint(3, [1]);
|
|
|
|
constraint col_constraint(1, [3]);
|
|
constraint col_constraint(2, [2]);
|
|
constraint col_constraint(3, [1]);
|
|
|
|
% Solution:
|
|
%
|
|
% # # #
|
|
% # # .
|
|
% # . .
|
|
|