CIRCHECK


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 493M

Problem type

Comments


  • -1
    10Tin_Nghia  commented on July 11, 2024, 9:20 p.m.

    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; }