{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"hlce","formal_name":"Humanity's Last Code Exam","introduction":"Humanity's Last Code Exam evaluates problem solving and code generation using ICPC World Finals and IOI problems. The project describes 235 problems; this import selects its public ICPC dataset of 146 problems.","introduction_ja":"","introduction_en":"","category":"Category not supplied","task_count":null,"acquisition_status":"Acquisition status not supplied","official_url":"https://humanity-s-last-code-exam.github.io/website/","indexing_mode":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"827cb28e-a1b4-5476-90f6-7350d2b309a2","task_key":"ICPC~2dWorld~2dFinals--examples--2017~5fE","task_revision_id":"2","upstream_id":"2017_E","short_description":"Need for Speed","config":"ICPC-World-Finals","split":"examples","body":"{\"platform\":\"atcoder\",\"question_content\":\"**Problem Description**\\n\\nSheila is a student and she drives a typical student car: it is old, slow, rusty, and falling apart. Recently, the needle on the speedometer fell off. She glued it back on, but she might have placed it at the wrong angle. Thus, when the speedometer reads \\\\(s\\\\), her true speed is \\\\(s + c\\\\), where \\\\(c\\\\) is an unknown constant (possibly negative).\\n\\nSheila made a careful record of a recent journey and wants to use this to compute \\\\(c\\\\). The journey consisted of \\\\(n\\\\) segments. In the \\\\(i^{th}\\\\) segment she traveled a distance of \\\\(d_i\\\\) and the speedometer read \\\\(s_i\\\\) for the entire segment. This whole journey took time \\\\(t\\\\). Help Sheila by computing \\\\(c\\\\).\\n\\nNote that while Sheila’s speedometer might have negative readings, her true speed was greater than zero for each segment of the journey.\\n\\n**Input**\\n\\n- The first line of input contains two integers \\\\(n\\\\) (\\\\(1 \\\\leq n \\\\leq 1000\\\\)), the number of sections in Sheila’s journey, and \\\\(t\\\\) (\\\\(1 \\\\leq t \\\\leq 10^6\\\\)), the total time.\\n- This is followed by \\\\(n\\\\) lines, each describing one segment of Sheila’s journey.\\n- The \\\\(i^{th}\\\\) of these lines contains two integers \\\\(d_i\\\\) (\\\\(1 \\\\leq d_i \\\\leq 1000\\\\)) and \\\\(s_i\\\\) (\\\\(|s_i| \\\\leq 1000\\\\)), the distance and speedometer reading for the \\\\(i^{th}\\\\) segment of the journey. Time is specified in hours, distance in miles, and speed in miles per hour.\\n\\n**Output**\\n\\n- Display the constant \\\\(c\\\\) in miles per hour. Your answer should have an absolute or relative error of less than \\\\(10^{-6}\\\\).\\n\\n**Sample Input 1**\\n```\\n3 5\\n4 -1\\n4 0\\n10 3\\n```\\n\\n**Sample Output 1**\\n```\\n3.000000000\\n```\\n\\n**Sample Input 2**\\n```\\n4 10\\n5 3\\n2 2\\n3 6\\n3 1\\n```\\n\\n**Sample Output 2**\\n```\\n-0.508653377\\n```\",\"question_title\":\"Need for Speed\"}","display_format":"text","language":"","answer_status":"published","assets":[],"source_url":"https://humanity-s-last-code-exam.github.io/website/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}