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<h1>床</h1>2 3<p>4 ヒデヨ博士の家の床には正方形のタイルが敷きつめられています。芸術に造詣が深いヒデヨ博士は、赤、黄、青の塗料を使ってタイルに色を塗ることにしました。はじめに部屋の適当なタイルをひとつ選び、以下の方法で色を塗っていきます。5</p>6 7<ul>8<li>タイルを塗る色を、赤(図の番号1)、黄(図の番号2)、青(図の番号3)の順に変えていき、青の次はまた赤から始める。</li>9<li>すでに色を塗った領域の隣に正方形を追加し、そこに色を塗る。それらを合わせた領域が長方形になるようにする。正方形を追加する方向は、東、北、西、南の順に変えていき、南の次はまた東から始める(図では、上方向が北、右方向が東である)。</li>10</ul>11 12<br/>13<center>14 <img src="https://judgeapi.u-aizu.ac.jp/resources/images/PCK2019_floor" width="800"/>15</center>16<br/><br/>17 18<p>19 最初に赤く塗ったタイルから東西方向に$x$個、南北方向に$y$個移動したところにあるタイルは、何色に塗られているでしょうか。ただし、東の方向を$x$の正の方向、北の方向を$y$の正の方向とします。20</p>21 22<p>23 $x$と$y$を入力し、タイルの色を出力するプログラムを作成せよ。24</p>25 26<h2>入力</h2>27<p>28 入力は以下の形式で与えられる。29</p>30<pre>31$x$ $y$32</pre>33<p>34 1行に$x$と$y$ ($-10^6 \leq x,y \leq 10^6$)が与えられる。35</p>36 37<h2>出力</h2>38<p>39 タイルの色が赤のとき1、黄のとき2、青のとき3を1行に出力する。40</p>41 42 43<h2>入出力例</h2>44<h3>入力例1</h3>45<pre>460 047</pre>48 49<h3>出力例1</h3>50<pre>51152</pre>53 54<h3>入力例2</h3>55 56<pre>57-4 558</pre>59 60<h3>出力例2</h3>61<pre>62263</pre>64 65<h3>入力例3</h3>66<pre>678 -1468</pre>69 70<h3>出力例3</h3>71<pre>72373</pre>74 