@[猜一猜我是谁](/user/357900) 用C++17交
by _Life_ @ 2021-08-17 07:23:53
多交几次,或自己开个cf账号绑定
by 邓超 @ 2021-08-17 07:43:34
```cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
if(x==0||y==0)
{
cout<<"black";
return 0;
}
if((x>0&&y>0)||(x<0&&y<0))
{
if(x%2==0)
{
if(y%2!=0) cout<<"black";
else cout<<"white";
}
else
{
if(y%2==0) cout<<"black";
else cout<<"white";
}
}
if((x>0&&y<0)||(x<0&&y>0))
{
if(x%2==0)
{
if(y%2==0) cout<<"black";
else cout<<"white";
}
else
{
if(y%2!=0) cout<<"black";
else cout<<"white";
}
}
}
```
WA?
by 猜一猜我是谁 @ 2021-08-17 07:52:05
用 C++14 及以上提交,CF 不支持 C++11 了。
by Acfboy @ 2021-08-17 08:01:03
为什么会WA呢
by 猜一猜我是谁 @ 2021-08-17 10:39:00