{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"hlce","formal_name":"Humanity's Last Code Exam","introduction":"ICPC World FinalsとIOIの競技プログラミング問題を使い、問題解決とコード生成の能力を評価します。公式紹介では235問を収録し、今回の取得は公開ICPCデータ146問を対象とします。\n\nHumanity'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"},"task_id":"159c14e2-0f97-5b4d-8051-95e80139d07e","task_key":"ICPC~2dWorld~2dFinals--examples--2012~5fB","task_revision_id":"1","upstream_id":"2012_B","short_description":"Curvy Little Bottles","config":"ICPC-World-Finals","split":"examples","body":"{\"platform\":\"atcoder\",\"question_content\":\"**Problem Statement**\\n\\nIn her bike rides around Warsaw, Jill happened upon a shop that sold interesting glass bottles. She thought it might make an interesting project to use such bottles for measuring liquids, but this would require placing markings on the bottles to indicate various volumes. Where should those volume marks be placed?\\n\\nJill formalized the problem as follows. Assume a bottle is formed by revolving a shape that is the same as the graph of a polynomial \\\\( P \\\\) between \\\\( x = x_{\\\\text{low}} \\\\) and \\\\( x = x_{\\\\text{high}} \\\\) around the x-axis. Thus the x-axis is coincident with a vertical line through the center of the bottle. The bottom of the bottle is formed by a solid circular region at \\\\( x = x_{\\\\text{low}} \\\\), and the top of the bottle, at \\\\( x = x_{\\\\text{high}} \\\\), is left open.\\n\\nThe first sample input represents a bottle formed using the simple polynomial \\\\( 4 - 0.25x \\\\), with \\\\( x_{\\\\text{low}} = 0 \\\\) and \\\\( x_{\\\\text{high}} = 12 \\\\). The bottom of this bottle is a circle with a radius of 4, and the opening at the top is a circle with a radius of 1. The height of this bottle is 12. Volume markings are in increments of 25.\\n\\nGiven a polynomial \\\\( P \\\\), \\\\( x_{\\\\text{low}} \\\\), \\\\( x_{\\\\text{high}} \\\\), and the volume increment between successive marks on the bottle, compute the distances up from \\\\( x_{\\\\text{low}} \\\\) for the marks at successive volume increments. A mark cannot be made past the top of the bottle, and no more than the first 8 increments should be marked. Assume the value of \\\\( P \\\\) is greater than zero everywhere between \\\\( x_{\\\\text{low}} \\\\) and \\\\( x_{\\\\text{high}} \\\\).\\n\\n**Input**\\n\\nEach test case consists of three lines of bottle data:\\n\\n- Line 1: \\\\( n \\\\), the degree of the polynomial (an integer satisfying \\\\( 0 \\\\leq n \\\\leq 10 \\\\)).\\n- Line 2: \\\\( a_0, a_1, \\\\ldots, a_n \\\\), the real coefficients of the polynomial \\\\( P \\\\) defining the bottle’s shape, where \\\\( a_0 \\\\) is the constant term, \\\\( a_1 \\\\) is the coefficient of \\\\( x^1 \\\\), and \\\\( a_n \\\\) is the coefficient of \\\\( x^n \\\\). For each \\\\( i \\\\), \\\\( -100 \\\\leq a_i \\\\leq 100 \\\\), and \\\\( a_n \\\\neq 0 \\\\).\\n- Line 3:\\n  - \\\\( x_{\\\\text{low}} \\\\) and \\\\( x_{\\\\text{high}} \\\\), the real valued boundaries of the bottle (\\\\(-100 \\\\leq x_{\\\\text{low}} < x_{\\\\text{high}} \\\\leq 100\\\\) and \\\\( x_{\\\\text{high}} - x_{\\\\text{low}} > 0.1\\\\)).\\n  - \\\\( \\\\text{inc} \\\\), an integer which is the volume increment before each successive mark on the bottle (\\\\( 1 \\\\leq \\\\text{inc} \\\\leq 500 \\\\)).\\n\\n**Output**\\n\\nFor each test case, display the case number and the volume of the full bottle on one line. On a second line, display the increasing sequence of no more than 8 successive distances up from the bottom of the bottle for the volume markings. All volumes and height marks should be accurate to two decimal places. If the bottle does not have a volume that allows at least one mark, display the phrase `insufficient volume`. No test case will result in a mark within 0.01 from the top of the bottle. The volume of the bottle will not exceed 1000. All rounded distances for marks on a bottle differ by at least 0.05.\\n\\n**Sample Input**\\n\\n```\\n1\\n4.0 -0.25\\n0.0 12.0 25\\n1\\n4.0 -0.25\\n0.0 12.0 300\\n0\\n1.7841241161782\\n5.0 10.0 20\\n0\\n1.0\\n0.0 10.0 10\\n```\\n\\n**Output for Sample Input**\\n\\n```\\nCase 1: 263.89\\n0.51 1.06 1.66 2.31 3.02 3.83 4.75 5.87\\nCase 2: 263.89\\ninsufficient volume\\nCase 3: 50.00\\n2.00 4.00\\nCase 4: 31.42\\n3.18 6.37 9.55\\n```\",\"question_title\":\"Curvy Little Bottles\"}","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":[]}