24 public static void Main(String[] args) {
32 const long numVals = 3;
41 Console.WriteLine($
"Number of constraints: {solver.Constraints()}");
58 Console.WriteLine($
"Solution: {count}\n x={x.Value()} y={y.Value()} z={z.Value()}");
61 Console.WriteLine($
"Number of solutions found: {solver.Solutions()}");
65 Console.WriteLine(
"Advanced usage:");
66 Console.WriteLine($
"Problem solved in {solver.WallTime()}ms");
67 Console.WriteLine($
"Memory usage: {Solver.MemoryUsage()}bytes");
This is a simple CP program.
static void Main(String[] args)