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
p00103.html84 linesDownload Raw Back to problem_descriptions
1 2<H1>Baseball Simulation</H1>3 4<p>5Ichiro likes baseball and has decided to write a program which simulates baseball.</p>6 7<p>8The program reads events in an inning and prints score in that inning. There are only three events as follows:9</p>10 11<p>Single hit</p>12<ul>13<li>put a runner on the first base.</li>14<li>the runner in the first base advances to the second base and the runner in the second base advances to the third base.</li>15<li>the runner in the third base advances to the home base (and go out of base) and a point is added to the score.</li>16</ul>17 18<p>Home run</p>19<ul>20<li>all the runners on base advance to the home base.</li>21<li>points are added to the score by an amount equal to the number of the runners plus one.</li>22</ul>23 24<p>Out</p>25<ul>26<li>The number of outs is increased by 1.</li>27<li>The runners and the score remain stationary.</li>28<li>The inning ends with three-out.</li>29</ul>30 31<p>32Ichiro decided to represent these events using "HIT", "HOMERUN" and "OUT", respectively.33</p>34 35<p>Write a program which reads events in an inning and prints score in that inning. You can assume that the number of events is less than or equal to 100.36</p>37 38<H2>Input</H2>39 40<p>41The input consists of several datasets. In the first line, the number of datasets <i>n</i> is given. Each dataset consists of a list of events (strings) in an inning.42</p>43 44 45<H2>Output</H2>46 47<p>48For each dataset, prints the score in the corresponding inning.49</p>50 51<H2>Sample Input</H2>52 53<pre>54255HIT56OUT57HOMERUN58HIT59HIT60HOMERUN61HIT62OUT63HIT64HIT65HIT66HIT67OUT68HIT69HIT70OUT71HIT72OUT73OUT74</pre>75 76<H2>Output for the Sample Input</H2>77 78<pre>79780081</pre>82 83 84