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
p00365.html78 linesDownload Raw Back to problem_descriptions
1<H1>Age Difference</H1> <!-- Difference in ages-->2 3<p>4A trick of fate caused Hatsumi and Taku to come to know each other. To keep the encounter in memory, they decided to calculate the difference between their ages. But the difference in ages varies depending on the day it is calculated. While trying again and again, they came to notice that the difference of their ages will hit a maximum value even though the months move on forever.5</p>6<p>7  Given the birthdays for the two, make a program to report the maximum difference between their ages. The age increases by one at the moment the birthday begins. If the birthday coincides with the 29<sup>th</sup> of February in a leap year, the age increases at the moment the 1<sup>st</sup> of March arrives in non-leap years.8</p>9 10<h2>Input</h2>11 12<p>13  The input is given in the following format.14</p>15 16<pre>17<var>y_1</var> <var>m_1</var> <var>d_1</var>18<var>y_2</var> <var>m_2</var> <var>d_2</var>19</pre>20 21<p>22The first and second lines provide Hatsumi’s and Taku’s birthdays respectively in year <var>y_i</var> (1 &le; <var>y_i</var> &le; 3000), month <var>m_i</var> (1 &le; <var>m_i</var> &le; 12), and day <var>d_i</var> (1 &le; <var>d_i</var> &le; D<sub>max</sub>) format. Where <var>D<sub>max</sub></var> is given as follows:23 24  25</p>26 27<ul>28<li> 28 when February in a non-leap year</li>29<li> 29 when February in a leap-year</li>30<li> 30 in April, June, September, and November</li>31<li> 31 otherwise.</li>32</ul>33 34<p>35  It is a leap year if the year represented as a four-digit number is divisible by 4. Note, however, that it is a non-leap year if divisible by 100, and a leap year if divisible by 400.36</p>37 38 39<h2>Output</h2>40 41<p>42  Output the maximum difference between their ages.43</p>44 45<h2>Sample Input 1</h2>46 47<pre>481999 9 9492001 11 350</pre>51 52<h2>Sample Output 1</h2>53<pre>54355</pre>56 57<p>58 59  In this example, the difference of ages between them in 2002 and subsequent years is 3 on the 1<sup>st</sup> of October, but 2 on the 1<sup>st</sup> of December.60</p>61 62 63<h2>Sample Input 2</h2>64 65<pre>662008 2 29672015 3 168</pre>69 70<h2>Sample Output 2</h2>71<pre>72873</pre>74 75<p>76In this example, the difference of ages will become 8 on the 29<sup>th</sup> of February in and later years than 2016.77</p>78