C# Class Family.Family

Example obtained from "Finite Domain Constraint Programming in Oz" Maria and Clara are both heads of households, and both families have three boys and three girls. Neither family includes any children closer in age than one year, and all children are under age 10. The youngest child in Maria's family is a girl, and Clara has just given birth to a little girl. In each family, the sum of the ages of the boys equals the sum of the ages of the girls, and the sum of the squares of the ages of the boys equals the sum of the the squares of ages of the girls. The sum of the ages of all children is 60. What are the ages of the children in each family?
ファイルを表示 Open project: kikoanis/CSharpCream

Public Methods

Method Description
solve ( ) : void

Private Methods

Method Description
Main ( String args ) : void
sum ( IntVariable v ) : IntVariable
sum2 ( IntVariable v ) : IntVariable

Method Details

solve() public static method

public static solve ( ) : void
return void