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>Shopping</H1>2 3<p>4You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount you receive from Alice still fails to meet the price, you have to abandon buying the book this time.5</p>6 7<p>8 Write a program to calculate the minimum amount of money you need to borrow from Alice given the following three items of data: the money you and Alice have now and the price of the book.9</p>10 11 12<h2>Input</h2>13 14<p>15 The input is given in the following format.16</p>17 18<pre>19<var>m</var> <var>f</var> <var>b</var>20</pre>21 22<p>23A line containing the three amounts of money is given: the amount you have with you now <var>m</var> (0 ≤ <var>m</var> ≤ 10000), the money Alice has now <var>f</var> (0 ≤ <var>f</var> ≤ 10000) and the price of the book <var>b</var> (100 ≤ <var>b</var> ≤ 20000).24</p>25 26<h2>Output</h2>27 28<p>29Output a line suggesting the minimum amount of money you need to borrow from Alice. Output "NA" if all the money Alice has with him now is not a sufficient amount for you to buy the book.30</p>31 32<h2>Sample Input 1</h2>33 34<pre>351000 3000 300036</pre>37 38<h2>Sample Output 1</h2>39<pre>40200041</pre>42 43<h2>Sample Input 2</h2>44<pre>455000 3000 450046</pre>47 48<h2>Sample Output 2</h2>49<pre>50051</pre>52 53 54<h2>Sample Input 3</h2>55<pre>56500 1000 200057</pre>58 59<h2>Sample Output 3</h2>60<pre>61NA62</pre>63 