summaryrefslogtreecommitdiff
path: root/glpk-5.0/examples/pbn/skid.dat
blob: 865c73b3727e2596e14a9e47399efa207dd9b249 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* skid.dat */

/***********************************************************************
*  Web Paint-by-Number Puzzle #21 from <www.webpbn.com>.
*  Copyright (C) 2004 by Jan Wolter. Used by permission.
*
*  Slippery Conditions
*
*  created by Jan Wolter
*  Apr 4, 2004
*
*  Encoded in GNU MathProg by Andrew Makhorin <mao@gnu.org>.
***********************************************************************/

data;

param m := 25;

param n := 14;

param row : 1  2  3  :=
      1     9  .  .
      2     1  1  .
      3     1  1  1
      4     1  3  1
      5     13 .  .
      6     13 .  .
      7     13 .  .
      8     13 .  .
      9     2  2  .
      10    2  2  .
      11    .  .  .
      12    2  2  .
      13    2  2  .
      14    2  2  .
      15    2  2  .
      16    2  2  .
      17    2  2  .
      18    2  2  .
      19    2  2  .
      20    2  2  .
      21    2  2  .
      22    2  2  .
      23    2  2  .
      24    2  2  .
      25    2  2  .
;

param col : 1  2  3  4  5  :=
      1     2  .  .  .  .
      2     4  6  .  .  .
      3     9  4  4  2  .
      4     1  6  2  6  .
      5     1  5  2  .  .
      6     1  6  .  .  .
      7     1  5  .  .  .
      8     1  4  .  .  .
      9     1  4  .  .  .
      10    1  4  2  .  .
      11    1  4  6  .  .
      12    1  6  4  4  2
      13    9  2  6  .  .
      14    4  2  .  .  .
;

end;