102641: [AtCoder]ABC264 B - Nice Grid
Description
Score : $200$ points
Problem Statement
Print the color of the cell at the $R$-th row from the top and $C$-th column from the left in the following grid with $15$ vertical rows and $15$ horizontal columns.
Constraints
- $1 \leq R, C \leq 15$
- $R$ and $C$ are integers.
Input
Input is given from Standard Input in the following format:
$R$ $C$
Output
In the grid above, if the color of the cell at the $R$-th row from the top and $C$-th column from the left is black, then print black
; if the cell is white, then print white
. Note that the judge is case-sensitive.
Sample Input 1
3 5
Sample Output 1
black
In the grid above, the cell at the $3$-rd row from the top and $5$-th column from the left is black. Thus, black
should be printed.
Sample Input 2
4 5
Sample Output 2
white
In the grid above, the cell at the $4$-th row from the top and $5$-th column from the left is white. Thus, white
should be printed.
Input
题意翻译
输入一个 $R$ 一个 $C$,问题目描述中图片的第 $R$ 行第 $C$ 列是黑是白?黑输出 $\tt black$,白输出 $\tt white$。Output
得分:200分
问题描述
在下面的网格中,打印从上数第$R$行、从左数第$C$列的单元格的颜色。该网格有15行15列。
约束条件
- $1 \leq R, C \leq 15$
- $R$和$C$为整数。
输入
输入从标准输入以以下格式给出:
$R$ $C$
输出
在上述网格中,如果从上数第$R$行、从左数第$C$列的单元格颜色为黑色,则打印black
;如果单元格颜色为白色,则打印white
。请注意,裁判区分大小写。
样例输入1
3 5
样例输出1
black
在上述网格中,从上数第3行、从左数第5列的单元格为黑色。因此,应打印black
。
样例输入2
4 5
样例输出2
white
在上述网格中,从上数第4行、从左数第5列的单元格为白色。因此,应打印white
。