Team Ai
Datasetpublic

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.

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
3likes139downloads
p00106.html64 linesDownload Raw Back to problem_descriptions
1 2<H1>Discounts of Buckwheat</H1>3 4<p>5Aizu is famous for its buckwheat. There are many people who make buckwheat noodles by themselves.6</p>7 8<p>9  One day, you went shopping to buy buckwheat flour. You can visit three shops, A, B and C. The amount in a bag and its unit price for each shop is determined by the follows table. Note that it is discounted when you buy buckwheat flour in several bags.10</p>11 12<center>13<table class="withborder">14<tr><th></th><th>             Shop A </th><th>    Shop B   </th><th>  Shop C</th></tr>15<tr><th>  Amount in a bag </th><td>   200g</td><td>   300g</td><td>   500g</td></tr>16<tr><th> Unit price for a bag (nominal cost)</th><td> 380 yen </td><td>  550 yen </td><td>  850 yen</td></tr>17<tr><th> Discounted units </th><td> per 5 bags </td><td>per 4 bags </td><td>per 3 bags</td></tr>18<tr><th> Discount rate</th><td>   reduced by 20 %</td><td>  reduced by 15 %</td><td>  reduced by 12 %</td></tr>19</table>20</center>21<br/>22 23<p>24 For example, when you buy 12 bags of flour at shop A, the price is reduced by 20 % for 10 bags, but not for other 2 bags. So, the total amount shall be (380 &times; 10) &times; 0.8 + 380 &times; 2 = 3,800 yen.25</p>26 27<p>28  Write a program which reads the amount of flour, and prints the lowest cost to buy them. Note that you should buy the flour of exactly the same amount as the given input.29</p>30 31<H2>Input</H2>32 33<p>34  The input consists of multiple datasets. For each dataset, an integer <var>a</var> (500 &le; <var>a</var> &le; 5000, <var>a</var> is divisible by 100) which represents the amount of flour is given in a line.35</p>36 37<p>38  The input ends with a line including a zero. Your program should not process for the terminal symbol. The number of datasets does not exceed 50.39</p>40 41<H2>Output</H2>42 43<p>44  For each dataset, print an integer which represents the lowest cost.45</p>46 47<H2>Sample Input</H2>48 49<pre>5050051220052053</pre>54 55<H2>Output for the Sample Input</H2>56 57<pre>5885059339060</pre>61 62 63 64