On 7/16/07, Boyko Bantchev <[EMAIL PROTECTED]> wrote:
> 5 6 16.

Note that having this as a unique answer seems to require that
we know that the youngest was not born on the same year as
any of the others (for example, as the youngest of twins).

  ages=:>~./:~&.>,{3#<2}.i.20
  (#~ -&2 e. ]);(#~ 1 < #@>) ((+/,.*/)@|: </. ]) ages
5  6 16
6 12 16
8  8 18

vs.
  ages=:(#~ 2 </ @{. |:)>~./:~&.>,{3#<2}.i.20
  ages=:(#~ 2 </ @{. |:)>~./:~&.>,{3#<2}.i.20
  (#~ -&2 e. ]);(#~ 1 < #@>) ((+/,.*/)@|: </. ]) ages
5 6 16

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to