MCPcopy Create free account
hub / github.com/Gecode/gecode / solution

Method solution

examples/kakuro.cpp:393–398  ·  view source on GitHub ↗

Return a solution

Source from the content-addressed store, hash-verified

391 }
392 /// Return a solution
393 IntArgs solution(void) const {
394 IntArgs s(x.size());
395 for (int i=0; i<x.size(); i++)
396 s[i]=x[i].val();
397 return s;
398 }
399 };
400
401 /** \brief Generate tuple set for \a n distinct variables with sum \a c

Callers 1

generateFunction · 0.45

Calls 2

sizeMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected