Advertisement
semsem_elazazy

R. Circle Task

Mar 4th, 2022
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include <iostream>
  2. #include<bits/stdc++.h>
  3. #define ll long long
  4. #define ull unsigned long long
  5. using namespace std;
  6.  
  7.  
  8. int main() {
  9.    ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
  10.  
  11. long double x,y,r;
  12. cin>>x>>y>>r;
  13. int n;
  14. cin>>n;
  15. while(n--){
  16.     long double x1,y1;
  17.     cin>>x1>>y1;
  18.     if( ( ( x + r ) >= x1) && ( ( y + r ) >= y1) )        cout<<"YES"<<"\n";
  19.     else                                                  cout<<"NO"<<"\n";
  20. }
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement