prithivMLmods/Coder-Stat
Coder-Stat Dataset Overview The Coder-Stat dataset is a collection of programming-related data, including problem IDs, programming languages, original statuses, and source code snippets. This dataset is designed to assist in the analysis of coding patterns, error types, and performance metrics. Dataset Details Modalities Tabular: The dataset is structured in a tabular format. Text: Contains text data, including source code snippets.… See the full description on the dataset page: https://huggingface.co/datasets/prithivMLmods/Coder-Stat.
3139
1<H1>Bange Hills Tower</H1>2 3<p>4A project is underway to build a new viewing tower in Bange town called “Bange Hills Tower” whose selling point will be the gorgeous view of the entire main keep of Wakamatsu Castle from top to bottom. Therefore, the view line from the top of the tower must reach the bottom of the keep without being hindered by any of the buildings in the town.5</p>6 7 8<center>9<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE2_PCK2017_wakamatsuCastle" width="600"></center><br/>10 11<p>12Write a program to calculate the minimum tower height required to view the keep in its entirety based on the following information: the planned location of the tower and the heights and locations of existing buildings. Assume all the buildings, including the keep, are vertical lines without horizontal stretch. “view of the entire keep” means that the view line from the tower top can cover the keep from the bottom to the top without intersecting (contacts at the top are exempted) any of the other vertical lines (i.e., buildings).13</p>14 15 16<h2>Input</h2>17 18<p>19 The input is given in the following format.20</p>21 22<pre>23<var>N</var> <var>t</var>24<var>x_1</var> <var>h_1</var>25<var>x_2</var> <var>h_2</var>26:27<var>x_N</var> <var>h_N</var>28</pre>29 30<p>31The first line provides the number of existing buildings <var>N</var> (1≤<var>N</var>≤1000) and the planned location of the tower <var>t</var> (2≤<var>t</var>≤10<sup>5</sup>) in integers. Each of the subsequent <var>N</var> lines provides the information of the <var>i</var>-th building: location <var>x_i</var> (1 ≤ <var>x_i</var> < <var>t</var>) and height from the ground <var>h_i</var> (1 ≤ <var>h_i</var> ≤ 100). All position information is one-dimensional along the ground line whose origin coincides with the Keep location. No more than one building is located in the same location (i.e. if <var>i ≠ j</var>, then <var>x_i ≠ x_j</var>).32</p>33 34 35<h2>Output</h2>36 37<p>38Output the required height as a real number. No limits on the number of decimal places as long as the error does not exceed ± 10<sup>-3</sup>.39 40</p>41 42<h2>Sample Input 1</h2>43 44<pre>453 10466 4474 2483 249</pre>50 51<h2>Sample Output 1</h2>52<pre>536.66666754</pre>55 