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
p00615.html81 linesDownload Raw Back to problem_descriptions
1 2<h1><font color="#000000">Problem A:</font> Traffic Analysis</h1>3 4<p>5There are two cameras which observe the up line and the down line respectively on the double lane (please see the following figure). These cameras are located on a line perpendicular to the lane, and we call the line 'monitoring line.' (the red line in the figure)6</p>7 8<br>9<center>10<img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_trafficAnalysis_en">11</center>12<br>13 14 15<p>16Monitoring systems are connected to the cameras respectively.17When a car passes through the monitoring line, the corresponding monitoring system records elapsed time (sec) from the start of monitoring.18</p>19 20<p>21Your task is to write a program which reads records of the two monitoring systems and prints the maximum time interval where cars did not pass through the monitoring line.22</p>23 24<p>25The two monitoring system start monitoring simultaneously. The end of monitoring is indicated by the latest time in the records.26</p>27 28<h2>Input</h2>29 30<p>31The input consists of multiple datasets. Each dataset consists of:32</p>33 34<pre>35<i>n m</i>36<i>tl</i><sub>1</sub> <i>tl</i><sub>2</sub> ... <i>tl</i><sub>n</sub>37<i>tr</i><sub>1</sub> <i>tr</i><sub>2</sub> ... <i>tr</i><sub>m</sub>38</pre>39 40<p>41<i>n</i>, <i>m</i> are integers which represent the number of cars passed through monitoring line on the up line and the down line respectively. <i>tl<sub>i</sub></i>, <i>tr<sub>i</sub></i> are integers which denote the elapsed time when <i>i</i>-th car passed through the monitoring line for the up line and the down line respectively. You can assume that <i>tl</i><sub>1</sub> &lt; <i>tl</i><sub>2</sub> &lt; ... &lt; <i>tl</i><sub>n</sub>、 <i>tr</i><sub>1</sub> &lt; <i>tr</i><sub>2</sub> &lt; ... &lt; <i>tr</i><sub>m</sub>.42</p>43 44<p>45You can also assume that <i>n</i>, <i>m</i> &le; 10000, and 1 &le; <i>tl<sub>i</sub></i>, <i>tr<sub>i</sub></i> &le; 1,000,000.46</p>47 48<p>49The end of input is indicated by a line including two zero.50</p>51 52<h2>Output</h2>53 54<p>55For each dataset, print the maximum value in a line.56</p>57 58<H2>Sample Input</H2>59<pre>604 56120 35 60 706215 30 40 80 90633 26410 20 306542 60660 167100681 169107050710 072</pre>73 74<H2>Output for the Sample Input</H2>75<pre>7620771878100794080</pre>81