func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     long long int n, d;     cin >> n >> d;     int t;     cin >> t;     while (t--) {       long long int x, y;       cin >> x >> y;       long long int eq1 = y * (n - d) - ((n - d) * (x - d));       long long int eq2 = (y - (n - d)) + (x - (n));       long long int eq3 = ((y - n) - (x - (n - d)));       long long int eq4 = (y - d) + (x);       if (eq1 >= 0 && eq2 <= 0 && eq3 <= 0 && eq4 >= 0)         cout <<  YES n ;       else         cout <<  NO n ;     }   }   