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>Problem K: Rearranging Seats</H1>3<p>4Haruna is a high school student.5She must remember the seating arrangements in her class because she is a class president.6It is too difficult task to remember if there are so many students.7</p>8 9<p>10That is the reason why seating rearrangement is depress task for her.11But students have a complaint if seating is fixed.12</p>13 14<p>15One day, she made a rule that all students must move but they don't move so far as the result of seating rearrangement.16</p>17 18<p>19The following is the rule.20The class room consists of <i>r*c</i> seats.21Each <i>r</i> row has <i>c</i> seats.22The coordinate of the front row and most left is (1,1). The last row and right most is (<i>r</i>,<i>c</i>).23After seating rearrangement, all students must move next to their seat.24If a student sit (<i>y</i>,<i>x</i>) before seating arrangement, his/her seat must be (<i>y</i>,<i>x</i>+1) , (<i>y</i>,<i>x</i>-1), (<i>y</i>+1,<i>x</i>) or (<i>y</i>-1,<i>x</i>).25The new seat must be inside of the class room. For example (0,1) or (<i>r</i>+1,<i>c</i>) is not allowed.26</p>27 28<p>29Your task is to check whether it is possible to rearrange seats based on the above rule.30</p>31 32<H2>Input</h2>33<p>34Input consists of multiple datasets.35Each dataset consists of 2 integers.36The last input contains two 0.37A dataset is given by the following format.38</p>39<pre>40<i>r</i> <i>c</i>41</pre>42<p>43Input satisfies the following constraint.<br>441 ≤ <i>r</i> ≤ 19, 1 ≤ <i>c</i> ≤ 1945</p>46 47<h2>Output</h2>48<p>49Print "yes" without quates in one line if it is possible to rearrange the seats, otherwise print "no" without quates in one line.50</p>51 52<h2>Sample Input</h2>53<pre>541 1552 2560 057</pre>58 59<h2>Sample Output</h2>60<pre>61no62yes63</pre>64 65<h2>Hint</h2>66<p>67For the second case, before seat rearrangement, the state is shown as follows.68</p>69<pre>701 2713 472</pre>73<p>74There are some possible arrangements.75For example76</p>77<pre>782 4791 380</pre>81<p>82or83</p>84<pre>852 1864 387</pre>88<p>89is valid arrangement.90</p>