#include<stdio.h>
int main()
{
int i,j,k;
printf("Please imput three points\n");
scanf("%d %d %d",&i,&j,&k);
int x1,y1,x2,y2,x3,y3;
x1=i/7;y1=i%7;
x2=j/7;y2=j%7;
x3=k/7;y3=k%7;
if(y2-y1==1&&x3-x2==1){
printf("东南转向");
}
else if(y2-y1==1&&x2-x3==1){
printf("东北转向");
}
else if(y1-y2==1&&x2-x3==1){
printf("西北转向");
}
else if(y1-y2==1&&x3-x2==1){
printf("西南转向");
}
else if(x1-x2==1&&y3-y2==1){
printf("北东转向");
}
else if(x1-x2==1&&y2-y3==1){
printf("北西转向");
}
else if(x2-x1==1&&y3-y2==1){
printf("南东转向");
}
else if(x2-x1==1&&y2-y3==1){
printf("南西转向");
}
else
printf("不构成转向");
return 0;
}
23计算机科学与技术实验报告