提出 #34002867
ソースコード 拡げる
#include <iostream>
using namespace std;
int main(void){
static const unsigned char grid[15][15] =
{
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
{1,0,1,1,1,1,1,1,1,1,1,1,1,0,1},
{1,0,1,0,0,0,0,0,0,0,0,0,1,0,1},
{1,0,1,0,1,1,1,1,1,1,1,0,1,0,1},
{1,0,1,0,1,0,0,0,0,0,1,0,1,0,1},
{1,0,1,0,1,0,1,1,1,0,1,0,1,0,1},
{1,0,1,0,1,0,1,0,1,0,1,0,1,0,1},
{1,0,1,0,1,0,1,1,1,0,1,0,1,0,1},
{1,0,1,0,1,0,0,0,0,0,1,0,1,0,1},
{1,0,1,0,1,1,1,1,1,1,1,0,1,0,1},
{1,0,1,0,0,0,0,0,0,0,0,0,1,0,1},
{1,0,1,1,1,1,1,1,1,1,1,1,1,0,1},
{1,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
};
int l, i=0, a[2];
while(cin>>l){
a[i] = l;
i++;
}
int R = a[0];
int C = a[1];
if(grid[R-1][C-1] > 0)
{
printf("black");
}
else
{
printf("white");
}
return 0;
}
提出情報
| 提出日時 |
|
| 問題 |
B - Nice Grid |
| ユーザ |
senri0123 |
| 言語 |
C++ (GCC 9.2.1) |
| 得点 |
200 |
| コード長 |
1006 Byte |
| 結果 |
AC |
| 実行時間 |
3 ms |
| メモリ |
3756 KiB |
ジャッジ結果
| セット名 |
Sample |
All |
| 得点 / 配点 |
0 / 0 |
200 / 200 |
| 結果 |
|
|
| セット名 |
テストケース |
| Sample |
example0.txt, example1.txt |
| All |
000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, example0.txt, example1.txt |
| ケース名 |
結果 |
実行時間 |
メモリ |
| 000.txt |
AC |
3 ms |
3604 KiB |
| 001.txt |
AC |
3 ms |
3756 KiB |
| 002.txt |
AC |
3 ms |
3504 KiB |
| 003.txt |
AC |
2 ms |
3468 KiB |
| 004.txt |
AC |
3 ms |
3580 KiB |
| 005.txt |
AC |
2 ms |
3576 KiB |
| 006.txt |
AC |
2 ms |
3576 KiB |
| 007.txt |
AC |
2 ms |
3648 KiB |
| 008.txt |
AC |
2 ms |
3584 KiB |
| 009.txt |
AC |
2 ms |
3468 KiB |
| 010.txt |
AC |
2 ms |
3580 KiB |
| 011.txt |
AC |
2 ms |
3584 KiB |
| 012.txt |
AC |
2 ms |
3600 KiB |
| 013.txt |
AC |
2 ms |
3624 KiB |
| 014.txt |
AC |
2 ms |
3556 KiB |
| example0.txt |
AC |
3 ms |
3624 KiB |
| example1.txt |
AC |
2 ms |
3648 KiB |