This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: and D, in that order. 0 < B,C,D < 1000000. Input ends with a line containing three zeros. You should use double precision floating point arithmetic to do input and computation, as input with 3 decimal places can have up to 9 significant digits. p OutputFor each test case, one line containing the length of the shortest arrow beetle flying route from Olivia to Oliver. This length must have exactly 3 decimal places. Sample Input 10.0 10.0 20.0 0.1 0.1 20.0 10.0 80.0 20.0 Sheet1 Page 2 0 0 0 Sample Output 51.42 62.63 108.2 File: lovelog.txt Author: Bob Walton <walton@deas.harvard.edu> Date: Sun Oct 20 22:44:48 EDT 2002 The authors have placed this file in the public domain they make no warranty and accept no liability for this file. RCS Info (may not be true date or author): $Author: walton $ $Date: 2002/10/21 02:46:01 $ $RCSfile: lovelog.txt,v $ $Revision: 1.3 $...
View
Full
Document
This note was uploaded on 04/29/2011 for the course IT 201 taught by Professor K.v.arya during the Spring '11 term at IIT Kanpur.
 Spring '11
 k.v.arya

Click to edit the document details