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携帯電話には、メールなどの文章を効率良く入力するために入力候補を表示する機能が搭載されています。これは、使われる頻度が高い単語を記録しておき、入力された文字を頭文字に持つ単語を入力候補として提示するものです。例えば、普段”computer”という単語を多く入力しているなら、”c”と入力するだけで候補として”computer”が提示されます。このような機能の基本部分を作成してみましょう。8</p>9 10<p>11文章、文字を入力とし、その文字を頭文字に持つ単語を出現数の順に出力するプログラムを作成してください。ただし、出現数が同じ単語が複数ある場合は、辞書式順序で出力します。出力する単語は最大5つまでとします。該当する単語が存在しない場合は”NA”と出力してください。12</p>13 14 15<h2>入力</h2>16 17<p>18複数のデータセットが与えられます。入力の終わりはゼロひとつで表されます。各データセットは以下の形式で与えられます。19</p>20 21<pre>22<var>n</var>23<var>line<sub>1</sub></var>24<var>line<sub>2</sub></var>25:26<var>line<sub>n</sub></var>27<var>k</var>28</pre>29 30<p>311行目に文章の行数 <var>n</var> (1 ≤ <var>n</var> ≤ 10) が与えられます。続く <var>n</var> 行に文章が与えられます。文章は半角英小文字と半角空白からなり、1行の文字数は1文字以上1024文字以下とします。空白によって区切られる単語は1文字以上20文字以下です。32</p>33 34<p>35続く行に頭文字 <var>k</var> が半角英字で与えられます。36</p>37 38<p>39データセットの数は 100 を超えません。40</p>41 42 43<h2>出力</h2>44<p>45データセットごとに、指定された文字を頭文字にもつ単語または”NA” を出力します。46</p>47 48 49<h2>入力例</h2>50 51<pre>52153ben likes bananas the best among many fruits because bananas are sweet and cheap54b55156winners get to visit aizu and the university of aizu and make many friends as well57a58359ask alex about60the answer for the61assignment on android apps62a63264programming is both65a sport and an intellectual puzzle66c67068</pre>69 70 71<h2>出力例</h2>72 73<pre>74bananas because ben best75aizu and as76about alex android answer apps77NA78</pre>