Debian Codegraph @

tests/spec/examples/magicsq_3.mzn

raw
1 /***
2 !Test
3 expected:
4 - !Result
5 solution: !Solution
6 a:
7 - [8, 1, 6]
8 - [3, 5, 7]
9 - [4, 9, 2]
10 - !Result
11 solution: !Solution
12 a:
13 - [6, 7, 2]
14 - [1, 5, 9]
15 - [8, 3, 4]
16 - !Result
17 solution: !Solution
18 a:
19 - [2, 7, 6]
20 - [9, 5, 1]
21 - [4, 3, 8]
22 - !Result
23 solution: !Solution
24 a:
25 - [4, 3, 8]
26 - [9, 5, 1]
27 - [2, 7, 6]
28 - !Result
29 solution: !Solution
30 a:
31 - [8, 3, 4]
32 - [1, 5, 9]
33 - [6, 7, 2]
34 - !Result
35 solution: !Solution
36 a:
37 - [2, 9, 4]
38 - [7, 5, 3]
39 - [6, 1, 8]
40 ***/
41
42 include "magicsq.mzn.model";
43
44 n = 3;