git-subtree-dir: software/minizinc git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
48 lines
1.1 KiB
MiniZinc
48 lines
1.1 KiB
MiniZinc
/***
|
|
!Test
|
|
expected: !Result
|
|
solution: !Solution
|
|
x:
|
|
- - [1, 1]
|
|
- [1, 1]
|
|
- - [1, 1]
|
|
- [1, 1]
|
|
y:
|
|
- - - [1, 1]
|
|
- [1, 1]
|
|
- - [1, 1]
|
|
- [1, 1]
|
|
- - - [1, 1]
|
|
- [1, 1]
|
|
- - [1, 1]
|
|
- [1, 1]
|
|
z:
|
|
- - - - [1, 1]
|
|
- [1, 1]
|
|
- - [1, 1]
|
|
- [1, 1]
|
|
- - - [1, 1]
|
|
- [1, 1]
|
|
- - [1, 1]
|
|
- [1, 1]
|
|
- - - - [1, 1]
|
|
- [1, 1]
|
|
- - [1, 1]
|
|
- [1, 1]
|
|
- - - [1, 1]
|
|
- [1, 1]
|
|
- - [1, 1]
|
|
- [1, 1]
|
|
***/
|
|
|
|
array[int, int, int] of var 1..1: x :: add_to_output
|
|
= array3d(1..2, 1..2, 1..2, [1, _, _, _, _, _, _, _]);
|
|
array[int, int, int, int] of var 1..1: y :: add_to_output
|
|
= array4d(1..2, 1..2, 1..2, 1..2,
|
|
[1, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]);
|
|
array[int, int, int, int, int] of var 1..1: z :: add_to_output
|
|
= array5d(1..2,1..2, 1..2, 1..2, 1..2,
|
|
[1, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
|
|
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]);
|
|
solve satisfy;
|