972 - Horizon Line

All about problems in Volume 9. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
baodog
Experienced poster
Posts: 202
Joined: Wed Jul 04, 2007 6:53 am

972 - Horizon Line

Post by baodog » Wed Aug 01, 2007 3:41 am

Hi,

I simply compute h at points specified for f and g, and
take the minimum (see simple code below). Is there anything wrong with this approach? Any test inputs/outputs are really appreciated.
Thanks.

Code: Select all

Fixed Issue
Had issue near boundary ... fixed.

greve
New poster
Posts: 27
Joined: Tue May 29, 2007 8:52 pm
Contact:

Re: 972 - Horizon Line

Post by greve » Fri Feb 06, 2009 9:38 pm

The inputs you have provided are a bit misleading because they are not valid according to the problem statement.
For help with problems, visit http://www.uvatoolkit.com/

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 972 - Horizon Line

Post by brianfry713 » Tue Dec 03, 2013 2:46 am

You need to stop your code when you've read the last N from the input.
Check input and AC output for thousands of problems on uDebug!

Post Reply

Return to “Volume 9 (900-999)”