return this.red>=1 && this.red<=255 && this.green==0 && this.blue==0;
{return this.red==0 && this.green==0 && this.blue==0;}
{return this.red==255 && this.green==255 && this.blue==255;}
private Pixel[]arr=new Pixel[N];
int red=0,green=0,blue=0;
for(int i=0;i<this.arr.Length;i++)
if(this.arr[i].IsGreen())
return red==blue && red==green;
public bool IsBlackWhite()
for(int i=0;i<this.arr.Length;i++)
if((this.arr[i].IsBlack() && this.arr[i].IsWhite())==false)
if(this.arr[i].IsBlack())
if(this.arr[i].IsWhite())
return black>=1 && white>=1;
public static void Main()
Console.WriteLine("Hello World");