comp.lang.ada
 help / color / mirror / Atom feed
From: AlZimmerma@aol.com
To: maa@liacc.up.pt
Cc: comp.lang.ada@ada.eu.org
Subject: Re: Programming Contest
Date: Sun, 22 Jul 2001 11:51:04 EDT
Date: 2001-07-22T11:51:04-04:00	[thread overview]
Message-ID: <mailman.995817145.23940.comp.lang.ada@ada.eu.org> (raw)

Mario,

Thank you for your interest in the Darts Contest.

> ". . . the 5 areas have values (1, 2, 4, 7, 11). Then the smallest
>  unattainable score is 27."
>  
>  I don't get it.  If the three darts hit 11, isn't the (attained) score 33?
>  
>  And isn't the smallest unattainable score = largest attainable + 1?
>  
>  And so wouldn't values (Infinity, ...) be a trivial solution to any N?
>  
>  What am I missing?

It isn't true that smallest unattainable score is exactly one more than the 
largest attainable.

In the example, you are correct that 33 is the largest attainable score.  But 
there are a few scores smaller than 33 which cannot be attained.  And 27 is 
the smallest of these.

To see this, observe that scores from 1 through 26 are demonstrably 
attainable:

    1 = 1
    2 = 2
    3 = 1 + 2
    4 = 2 + 2
    5 = 1 + 4
    6 = 2 + 4
    7 = 7
    8 = 1 + 7
    9 = 2 + 7
    10 = 1 + 2 + 7
    11 = 11
    12 = 4 + 4 + 4
    13 = 2 + 4 + 7
    14 = 7 + 7
    15 = 4 + 11
    16 = 1 + 4 + 11
    17 = 2 + 4 + 11
    18 = 7 + 11
    19 = 4 + 4 + 11
    20 = 2 + 7 + 11
    21 = 7 + 7 + 7
    22 = 11 + 11
    23 = 1 + 11 + 11
    24 = 2 + 11 + 11
    25 = 7 + 7 + 11
    26 = 4 + 11 + 11

But there's no way to attain 27.

Please let me know if this doesn't answer your question.

Al Zimmermann
  





             reply	other threads:[~2001-07-22 15:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-22 15:51 AlZimmerma [this message]
2001-07-22 16:21 ` Programming Contest Al Christians
2001-07-22 20:01   ` tmoran
2001-07-23  1:26   ` Tucker Taft
2001-07-23  2:22     ` Al Christians
2001-07-23 10:49       ` Larry Kilgallen
2001-07-23  6:04     ` Al Christians
2001-07-29 19:57       ` Tucker Taft
     [not found] <Pine.LNX.4.33.9901111915230.32622-100000@lagoa.niaad.liacc.up.pt>
2001-07-23 11:44 ` David C. Hoos
  -- strict thread matches above, loose matches on Subject: below --
2001-07-21 17:42 Al Christians
2001-07-21 19:54 ` Larry Kilgallen
2001-07-11 11:29 Programming contest Martin Dowie
2001-07-11 12:22 ` Ehud Lamm
2001-07-11 15:25 ` Cailean Nicholas Pól Gloucester
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox