Дистанционная подготовка: 298. Король
Re: 298. Король
от Muhsin Shokirov - Вторник 6 Октябрь 2015, 18:26
  Napishiti etih
......
......
cin>>x1>>y1;
cin>>x2>>y2;
if(x2-x1==-1 and y2-y1==0
or x2-x1==1 and y2-y1==1
or x2-x1==0 and y2-y1==-1
or x1-x2==1 and y1-y2==1
or x1-x2==1 and y1-y2==-1
or x1-x2==-1 and y1-y2==1
or x1-x2==-1 and y1-y2==0
or x1-x2==0 and y1-y2==-1)
{
cout