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<H1><font color="#000">Problem D:</font> 77377</H1>3 4<p>5At the risk of its future, International Cellular Phones Corporation (ICPC) invests its resources in developing new mobile phones, which are planned to be equipped with Web browser, mailer, instant messenger, and many other advanced communication tools. Unless members of ICPC can complete this stiff job, it will eventually lose its market share.6</p>7<p>8You are now requested to help ICPC to develop intriguing text input software for small mobile terminals. As you may know, most phones today have twelve buttons, namely, ten number buttons from "<span>0</span>" to "<span>9</span>" and two special buttons "<span>*</span>" and "<span>#</span>". Although the company is very ambitious, it has decided to follow today's standards and conventions. You should not change the standard button layout, and should also pay attention to the following standard button assignment.9</p>10<table border=0>11<tr>12<td width="80">button</td><td width="80"> letters</td><td width="80"> button </td><td width="80">letters</td>13</tr>14<tr>15<td>2 </td><td> a, b, c </td><td> 6 </td><td> m, n, o</td>16</tr>17<tr>18<td>3 </td><td> d, e, f </td><td> 7 </td><td> p, q, r, s</td>19</tr>20<tr>21<td>4 </td><td> g, h, i </td><td>8 </td><td> t, u, v</td>22</tr>23<tr>24<td>5 </td><td> j, k, l </td><td> 9 </td><td> w, x, y, z</td>25</tr>26</table>27 28<p>29This means that you can only use eight buttons for text input.30</p>31<p>32Most users of current ICPC phones are rushed enough to grudge wasting time on even a single button press. Your text input software should be economical of users' time so that a single button press is suffcient for each character input. In consequence, for instance, your program should accept a sequence of button presses "<span>77377</span>" and produce the word "<span>press</span>". Similarly, it should translate "<span>77377843288866</span>" into "press the button".33</p>34<p>35 36Ummm... It seems impossible to build such text input software since more than one English letter is represented by a digit!. For instance, "<span>77377</span>" may represent not only "press" but also any one of 768 (= 4 × 4 × 3 × 4 × 4) character strings. However, we have the good news that the new model of ICPC mobile phones has enough memory to keep a dictionary. You may be able to write a program that filters out <i>false words</i>, i.e., strings not listed in the dictionary. 37</p>38 39<H2>Input</H2>40 41<p>42The input consists of multiple data sets, each of which represents a dictionary and a sequence of button presses in the following format.43</p>44<pre>45<i>n</i>46<i>word</i><sub>1</sub>47.48.49.50<i>word<sub>n</sub></i>51<i>sequence</i>52</pre>53 54<p>55<i>n</i> in the first line is a positive integer, representing the number of words in the dictionary. The next <i>n</i> lines, each representing a word in the dictionary, only contain lower case letters from `<span>a</span>' to `<span>z</span>'. The order of words in the dictionary is arbitrary (not necessarily in the lexicographic order). No words occur more than once in the dictionary. The last line, sequence, is the sequence of button presses, and only contains digits from `<span>2</span>' to `<span>9</span>'.56</p>57<p>58You may assume that a dictionary has at most one hundred words and that the length of each word is between one and fifty, inclusive. You may also assume that the number of input digits in the <i>sequence</i> is between one and three hundred, inclusive.59</p>60<p>61A line containing a zero indicates the end of the input. 62</p>63 64<H2>Output</H2>65 66<p>67For each data set, your program should print all sequences that can be represented by the input sequence of button presses. Each sequence should be a sequence of words in the dictionary, and should appear in a single line. The order of lines does not matter.68</p>69<p>70Two adjacent words in a line should be separated by a single space character and the last word should be followed by a single period (`<span>.</span>').71</p>72<p>73Following those output lines, your program should also print a terminating line consisting solely of two hyphens (`<span>--</span>'). If there are no corresponding sequences of words, your program should only print the terminating line.74</p>75<p>76You may assume that for each data set the number of output lines is at most twenty, excluding the terminating line. 77</p>78 79<H2>Sample Input</H2>80<pre>81582push83press84the85button86bottom877737784328886688489i90am91going92go934264646494395a96b97c98333990100</pre>101 102<H2>Output for the Sample Input</H2>103<pre>104press the button.105--106i am going.107i am go go i.108--109--110</pre>111 112 