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
p00366.html80 linesDownload Raw Back to problem_descriptions
1<H1>Electric Metronome</H1>2 3<p>4  A boy PCK is playing with <var>N</var> electric metronomes. The <var>i</var>-th metronome is set to tick every <var>t_i</var> seconds. He started all of them simultaneously.5</p>6 7<p>8He noticed that, even though each metronome has its own ticking interval, all of them tick simultaneously from time to time in certain intervals. To explore this interesting phenomenon more fully, he is now trying to shorten the interval of ticking in unison by adjusting some of the metronomes’ interval settings. Note, however, that the metronomes do not allow any shortening of the intervals.9  10</p>11 12<p>13  Given the number of metronomes and their preset intervals <var>t_i</var> (sec), write a program to make the tick-in-unison interval shortest by adding a non-negative integer <var>d_i</var> to the current interval setting of the <var>i</var>-th metronome, and report the minimum value of the sum of all <var>d_i</var>.14</p>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>24<var>t_1</var>25<var>t_2</var>26:27<var>t_N</var>28</pre>29 30<p>31The first line provides the number of metronomes <var>N</var> (1 &le; <var>N</var> &le; 10<sup>5</sup>). Each of the subsequent <var>N</var> lines provides the preset ticking interval <var>t_i</var> (1 &le; <var>t_i</var> &le; 10<sup>4</sup>) of the <var>i</var>-th metronome.32  33</p>34 35 36<h2>Output</h2>37 38<p>39  Output the minimum value.40</p>41 42<h2>Sample Input 1</h2>43 44<pre>45346347648849</pre>50 51<h2>Sample Output 1</h2>52<pre>53354</pre>55 56<p>57If we have three metronomes each with a ticking interval of 3, 6, and 8 seconds, respectively, simultaneous activation of these will produce a tick in unison every 24 seconds. By extending the interval by 1 second for the first, and 2 seconds for the second metronome, the interval of ticking in unison will be reduced to 8 seconds, which is the shortest possible for the system.58  59</p>60 61 62<h2>Sample Input 2</h2>63 64<pre>6526610671068</pre>69 70<h2>Sample Output 2</h2>71<pre>72073</pre>74 75<p>76 77If two metronomes are both set to 10 seconds, then simultaneous activation will produce a tick in unison every 10 seconds, which is the shortest possible for this system.78  79</p>80