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
p00025.html75 linesDownload Raw Back to problem_descriptions
1 2<H1>Hit and Blow</H1>3 4<p>5Let's play Hit and Blow game. <i>A</i> imagines four numbers and <i>B</i> guesses the numbers. After <i>B</i> picks out four numbers, <i>A</i> answers:6</p>7 8<ul>9<li> The number of numbers which have the same place with numbers <i>A</i> imagined (Hit) </li>10<li> The number of numbers included (but different place) in the numbers <i>A</i> imagined (Blow)</li>11</ul>12 13<p>14For example, if <i>A</i> imagined numbers:15</p>16 17<pre>189 1 8 219</pre>20<p>21and <i>B</i> chose:22</p>23<pre>244 1 5 925</pre>26<p>27<i>A</i> should say 1 Hit and 1 Blow.28</p>29 30 31<p>32Write a program which reads four numbers <i>A</i> imagined and four numbers <i>B</i> chose and prints the number of Hit and Blow respectively. You may assume that the four numbers are all different and within from 0 to 9.33</p>34<H2>Input</H2>35 36<p>37The input consists of multiple datasets. Each dataset set consists of:38</p>39<pre>40<var>a<sub>1</sub></var> <var>a<sub>2</sub></var> <var>a<sub>3</sub></var> <var>a<sub>4</sub></var>41<var>b<sub>1</sub></var> <var>b<sub>2</sub></var> <var>b<sub>3</sub></var> <var>b<sub>4</sub></var>42</pre>43<p>44, where <var>a<sub>i</sub></var> (0 &le; <var>a<sub>i</sub></var> &le; 9) is <var>i</var>-th number <i>A</i>  imagined and <var>b<sub>i</sub></var> (0 &le; <var>b<sub>i</sub></var> &le; 9) is <var>i</var>-th number <i>B</i> chose.45</p>46 47<p>48The input ends with EOF. The number of datasets is less than or equal to 50.49</P>50 51<H2>Output</H2>52 53<p>54For each dataset, print the number of Hit and Blow in a line. These two numbers should be separated by a space.55</p>56 57<H2>Sample Input</H2>58 59<pre>609 1 8 2614 1 5 9624 6 8 2634 6 3 264</pre>65 66<H2>Output for the Sample Input</H2>67 68<pre>691 1703 071</pre>72 73 74 75