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 2<script type="text/x-mathjax-config">3 MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], skipTags: ["script","noscript","style","textarea","code"], processEscapes: true }});4</script>5<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML"></script>6 7<h2>Problem C8 Medical Checkup9 </h2>10 11<p>12 Students of the university have to go for a medical checkup, consisting of lots of checkup items, numbered 1, 2, 3, and so on.13</p>14 15<p>16 Students are now forming a long queue, waiting for the checkup to start. Students are also numbered 1, 2, 3, and so on, from the top of the queue. They have to undergo checkup items in the order of the item numbers, not skipping any of them nor changing the order. The order of students should not be changed either.17</p>18 19<p>20 Multiple checkup items can be carried out in parallel, but each item can be carried out for only one student at a time. Students have to wait in queues of their next checkup items until all the others before them finish.21</p>22 23<p>24 Each of the students is associated with an integer value called <i>health condition</i>. For a student with the health condition $h$, it takes $h$ minutes to finish each of the checkup items. You may assume that no interval is needed between two students on the same checkup item or two checkup items for a single student.25</p>26 27<p>28 Your task is to find the items students are being checked up or waiting for at a specified time $t$.29</p>30 31 32<h3>Input</h3>33<p>34 The input consists of a single test case in the following format.35</p>36 37<pre>38$n$ $t$39$h_1$40...41$h_n$42</pre>43 44<p>45 $n$ and $t$ are integers. $n$ is the number of the students ($1 \leq n \leq 10^5$). $t$ specifies the time of our concern ($0 \leq t \leq 10^9$). For each $i$, the integer $h_i$ is the health condition of student $i$ ($1 \leq h_ \leq 10^9$).46</p>47 48<h3>Output</h3>49 50<p>51 Output $n$ lines each containing a single integer. The $i$-th line should contain the checkup item number of the item which the student $i$ is being checked up or is waiting for, at ($t+0.5$) minutes after the checkup starts. You may assume that all the students are yet to finish some of the checkup items at that moment.52 </p>53 54 55<h3>Sample Input 1</h3>56<pre>573 2058559760361</pre>62 63<h3>Sample Output 1</h3>64<pre>65566367268</pre>69 70<h3>Sample Input 2</h3>71<pre>725 100000000073555374218675347276260577179078</pre>79 80<h3>Sample Output 2</h3>81<pre>821800838318008384180082851800828618008287</pre>