Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<bits/stdc++.h>
- #define ll long long
- #define ull unsigned long long
- using namespace std;
- int main() {
- ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
- long double x,y,r;
- cin>>x>>y>>r;
- int n;
- cin>>n;
- while(n--){
- long double x1,y1;
- cin>>x1>>y1;
- if( ( ( x + r ) >= x1) && ( ( y + r ) >= y1) ) cout<<"YES"<<"\n";
- else cout<<"NO"<<"\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement