{"id":"d445acb6-ec7f-4954-badd-7992ef3b9cdd","name":"Rescuer","description":"<a href=\"https://www.hackerearth.com/problem/algorithm/rescuer-2d2495cb/\" target=\"_blank\"><i class=\"fa fa-external-link\" aria-hidden=\"true\"> Link -> Rescuer</i></a>","inputFormat":"check the link","outputFormat":"check the link","constraints":"check the link","sampleCode":{"cpp":{"code":""},"java":{"code":"import java.util.Scanner;\r\n\r\npublic class Main {\r\n public static void main(String[] args) {\r\n\r\n //Code Here\r\n\r\n }\r\n}"},"ruby":{"code":""},"python":{"code":""},"javascript":{"code":""}},"points":10,"difficulty":"medium","sampleInput":"1\r\n3 -20 3 25 40 5","sampleOutput":"5.50000","questionVideo":"","hints":[],"associated":[],"solutionSeen":false,"tags":[],"meta":{"path":[{"id":0,"name":"home"},{"id":"0c54b191-7b99-4f2c-acb3-e7f2ec748b2a","name":"Data Structures and Algorithms","slug":"data-structures-and-algorithms","type":0},{"id":"ccdbbb91-d392-43f3-8065-0ecd4a077535","name":"Ternary Search For Experts","slug":"ternary-search-for-experts-998","type":0},{"id":"997b8870-c4ae-41c1-8f82-5bb6dc5ac3cc","name":"Rescuer","slug":"rescuer","type":1}],"next":{"id":"ef6708aa-62e8-4942-bb66-3e1cb2063eef","name":"Race Time!","type":1,"slug":"race-time"},"prev":{"id":"95f88d0d-7ed0-4b3f-b5be-92660831461e","name":"Building Construction","type":1,"slug":"building-construction"}}}

Rescuer

<a href="https://www.hackerearth.com/problem/algorithm/rescuer-2d2495cb/" target="_blank"><i class="fa fa-external-link" aria-hidden="true"> Link -> Rescuer</i></a>

{"id":"d445acb6-ec7f-4954-badd-7992ef3b9cdd","name":"Rescuer","description":"<a href=\"https://www.hackerearth.com/problem/algorithm/rescuer-2d2495cb/\" target=\"_blank\"><i class=\"fa fa-external-link\" aria-hidden=\"true\"> Link -> Rescuer</i></a>","inputFormat":"check the link","outputFormat":"check the link","constraints":"check the link","sampleCode":{"cpp":{"code":""},"java":{"code":"import java.util.Scanner;\r\n\r\npublic class Main {\r\n public static void main(String[] args) {\r\n\r\n //Code Here\r\n\r\n }\r\n}"},"ruby":{"code":""},"python":{"code":""},"javascript":{"code":""}},"points":10,"difficulty":"medium","sampleInput":"1\r\n3 -20 3 25 40 5","sampleOutput":"5.50000","questionVideo":"","hints":[],"associated":[],"solutionSeen":false,"tags":[],"meta":{"path":[{"id":0,"name":"home"},{"id":"0c54b191-7b99-4f2c-acb3-e7f2ec748b2a","name":"Data Structures and Algorithms","slug":"data-structures-and-algorithms","type":0},{"id":"ccdbbb91-d392-43f3-8065-0ecd4a077535","name":"Ternary Search For Experts","slug":"ternary-search-for-experts-998","type":0},{"id":"997b8870-c4ae-41c1-8f82-5bb6dc5ac3cc","name":"Rescuer","slug":"rescuer","type":1}],"next":{"id":"ef6708aa-62e8-4942-bb66-3e1cb2063eef","name":"Race Time!","type":1,"slug":"race-time"},"prev":{"id":"95f88d0d-7ed0-4b3f-b5be-92660831461e","name":"Building Construction","type":1,"slug":"building-construction"}}}
plane

Editor


Loading...

Rescuer

medium

Constraints

check the link

Format

Input

check the link

Output

check the link

Example

Sample Input

1 3 -20 3 25 40 5

Sample Output

5.50000

Discussions

Show Discussion

Related Resources

related resources

Turning Off Zen Mode