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
- Experienced poster
- Posts: 202
- Joined: Wed Jul 04, 2007 6:53 am
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.
Had issue near boundary ... fixed.
- New poster
- Posts: 27
- Joined: Tue May 29, 2007 8:52 pm
The inputs you have provided are a bit misleading because they are not valid according to the problem statement.
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
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