西工大NOJ100题+解答(10)
发布时间:2021-06-08
发布时间:2021-06-08
#include<stdio.h> int main() {
double x,y;
scanf("%lf,%lf",&x,&y);
if((x-2)*(x-2)+(y-2)*(y-2)<=1) printf("10");
else if((x-2)*(x-2)+(y+2)*(y+2)<=1) printf("10"); else if((x+2)*(x+2)+(y-2)*(y-2)<=1) printf("10"); else if((x+2)*(x+2)+(y+2)*(y+2)<=1) printf("10"); else printf("0"); return 0; }