LINK TẢI ĐỀ BÀI
using namespace std; long long a,b,R,x,y,d; int main() { cin>>a>>b>>R>>x>>y; double d=sqrt((a-x)(a-x)+(b-y)(b-y)) ;if(d<R) cout<<"1"; else if(d==R) cout<<"2"; else if(d>R) cout<<"3"; return 0; }
Comments
include <bits/stdc++.h>
using namespace std; long long a,b,R,x,y,d; int main() { cin>>a>>b>>R>>x>>y; double d=sqrt((a-x)(a-x)+(b-y)(b-y)) ;if(d<R) cout<<"1"; else if(d==R) cout<<"2"; else if(d>R) cout<<"3"; return 0; }