#include<iostream>
#include<math.h>
using namespace std;
int main(){
int a,b,d;
cin>>a>>b;
d=sqrt(a*a+b*b);
if(d>10)
cout<<"out"<<endl;
else if(d==10)
cout<<"on"<<endl;
else
cout<<"in"<<endl;
return 0;
}
1045 圆内圆外
最新推荐文章于 2021-10-12 21:43:23 发布
#include<iostream>
#include<math.h>
using namespace std;
int main(){
int a,b,d;
cin>>a>>b;
d=sqrt(a*a+b*b);
if(d>10)
cout<<"out"<<endl;
else if(d==10)
cout<<"on"<<endl;
else
cout<<"in"<<endl;
return 0;
}