On Feb 6, 12:30 pm, robin <[EMAIL PROTECTED]> wrote:
> Hi
> I was trying to solve problem number 5 from 15th bulgarian
> informatics
> olympiad.
> on the following website:
>
> http://www.math.bas.bg/bcmi/noi99.html
>
> (we have to find the minimum and maximum possible values of numbers
> on
> the star board)
> I don't know how to go about it. Any ideaz??

The maximum is fairly straight forward,
fill the star with 9s
read in each max
 for each value in that row
  if value > max then set value <- max
 end for
when stream.eof
test at least one value in row[i] == max[i]
if not fail

Too damn tired to think about the minimum.
-----
Geoff

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to