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 3 4<H1></H1>5 6<p>7 0 から 9 までの数字だけで構成された文字列が与えられたとき,その文字列から次の規則に従って新しい文字列を作る操作を考える.与えられた文字列を左端から1文字ずつ順に読んで行き,同じ数字 <i>a</i> が <i>r</i> 個続いていた場合,個数 <i>r</i> と数字<i>a</i> を空白で区切らずにこの順で書き出す.与えられた文字列の右端まで読み,最後の書き出しが終わったところまでを途中何回書き出しがあったとしても全部まとめて操作1回とカウントする.2回目以降の操作は前回の操作により書き出された文字列を与えられた文字列として同様の操作を実施する.例えば “<span>122244</span>” という文字列が与えられた場合には左端から順に1個の1, 3個の2,2個の4なのでこの操作1回で得られる文字列は “<span>113224</span>” であり,“<span>44444444444</span>” (11 個の4)の場合には得られる文字列は “<span>114</span>” となる.8</p>9 10<p>11 100 文字以下の与えられた文字列に上の操作を <i>n</i> 回実施した文字列を出力するプログラムを作成せよ.ただし, <i>n</i> ≤ 20 とする.12</p>13 14<!--15<p>16 入力ファイルのファイル名は “input.txt” である. “input.txt” は 2 行からなり,1 行目に操作回数 <i>n</i>, 2 行目に最初の文字列が書かれている.17</p>18 19<p>20 出力ファイルのファイル名は “output.txt” である.“output.txt” は 1 行であり, 指定された回数の操作を施した文字列の後に改行を入れること.21</p>22-->23 24<p>25 入力データ は 2 行からなり,1 行目に操作回数 <i>n</i>, 2 行目に最初の文字列が書かれている.26</p>27 28<table style="margin-bottom: 28px; margin-left: 28px; margin-right: 0px;">29 <tr>30 <th width="150" align="left">入力例</th>31 </tr>32<tr><td></td></tr>33 34<tr>35 <td>5<br>3611</td>37</tr>38<tr>39 <td> </td>40</tr>41<tr>42 <th width="150" align="left">出力例</th>43</tr>44<tr><td>1311222145</td>46</tr>47</table>48 49<h3>入力</h3>50 51<p>52入力は複数のデータセットからなる.n が 0 のとき入力が終了する.データセットの数は 5 を超えない.53</p>54 55<h3>出力</h3>56 57<p>58データセットごとに、指定された回数の操作を施した文字列 を1行に出力する.59</p>60 61<H2>入力例</H2>62 63<pre>6456511665671168069</pre>70 71<H2>出力例</H2>72 73<pre>7413112221751311222176</pre>77 78<div class="source">79<p class="source">80上記問題文と自動審判に使われるデータは、<a href="http://www.ioi-jp.org">情報オリンピック日本委員会</a>が作成し公開している問題文と採点用テストデータです。81</p>82</div>