43 using namespace Gecode;
56 static const int n = 26;
69 a(le[ 0]),
b(le[ 1]),
c(le[ 2]), e(le[ 4]), f(le[ 5]),
70 g(le[ 6]), h(le[ 7]),
i(le[ 8]), j(le[ 9]), k(le[10]),
71 l(le[11]), m(le[12]),
n(le[13]), o(le[14]),
p(le[15]),
72 q(le[16]),
r(le[17]), s(le[18]),
t(le[19]),
u(le[20]),
73 v(le[21]), w(le[22]),
x(le[23]), y(le[24]), z(le[25]);
79 rel(*
this, f+
u+g+
u+e == 50, opt.
icl());
80 rel(*
this, g+
l+e+e == 66, opt.
icl());
81 rel(*
this, j+
a+z+z == 58, opt.
icl());
82 rel(*
this,
l+y+
r+e == 47, opt.
icl());
83 rel(*
this, o+
b+o+e == 53, opt.
icl());
87 rel(*
this, s+
a+
x+o+
p+h+o+
n+e == 134, opt.
icl());
89 rel(*
this, s+o+
l+o == 37, opt.
icl());
90 rel(*
this, s+o+
n+g == 61, opt.
icl());
92 rel(*
this,
t+h+e+m+e == 72, opt.
icl());
113 le.update(*
this, share, s.
le);
118 return new Alpha(share,*
this);
124 for (
int i = 0;
i <
n;
i++) {
125 os << ((char) (
i+
'a')) <<
'=' << le[
i] << ((
i<n-1)?
", ":
"\n");
127 os << std::endl <<
"\t";
145 opt.
parse(argc,argv);
146 Script::run<Alpha,DFS,Options>(
opt);