求建筑高度





#include <stdio.h>
#include <stdlib.h>

int main()
{
    double x , y;
    int h;
    scanf("%lf %lf",&x,&y);
    if((x - 2)*(x - 2) + (y - 2)*(y - 2) <= 1 || (x - 2)*(x - 2) + (y + 2)*(y + 2) <= 1 || (x + 2)*(x + 2) + (y - 2)*(y - 2) <= 1 || (x + 2)*(x + 2) + (y + 2)*(y + 2) <= 1){
	h = 10;
    }else h = 0;
     printf("%d",h);
    return 0;
}



版权声明:本文为young_Tao原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。