git-subtree-dir: software/minizinc git-subtree-split: 5a577826da4d7cf6195f28b5604d8d20a01fbc6e
19 lines
356 B
MiniZinc
19 lines
356 B
MiniZinc
/***
|
|
!Test
|
|
expected:
|
|
- !Result
|
|
solution: !Solution
|
|
x: [1, 1, 1, 2, 2, 4, 4, 4, 4, 4]
|
|
- !Result
|
|
solution: !Solution
|
|
x: [1, 1, 1, 1, 2, 2, 4, 4, 4, 4]
|
|
- !Result
|
|
solution: !Solution
|
|
x: [1, 1, 1, 1, 1, 2, 2, 4, 4, 4]
|
|
***/
|
|
|
|
include "regular_regexp.mzn";
|
|
|
|
array [1..10] of var 1..4: x :: add_to_output;
|
|
|
|
constraint regular(x, "1{3,5} 2{2} 4+"); |