Submission #34002867
Source Code Expand
#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;
}
Submission Info
| Submission Time |
|
| Task |
B - Nice Grid |
| User |
senri0123 |
| Language |
C++ (GCC 9.2.1) |
| Score |
200 |
| Code Size |
1006 Byte |
| Status |
AC |
| Exec Time |
3 ms |
| Memory |
3756 KiB |
Judge Result
| Set Name |
Sample |
All |
| Score / Max Score |
0 / 0 |
200 / 200 |
| Status |
|
|
| Set Name |
Test Cases |
| 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 |
| Case Name |
Status |
Exec Time |
Memory |
| 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 |