Preview:
#include <iostream>

using std::cout;
using std::cin;
using std::endl; 
int main()
{
    int x, y;
    while (true)
    {
        cin >> x >> y;
        if (y <= 2 - x * x && (y >= x || y >= 0)) cout << "Yes ";
        else cout << "No  ";
        if (x <= 0 && y >= 0 && y <= 2 - x * x) cout << "A";
        if (x >= 0 && y >= x && y <= 2 - x * x) cout << "B";
        if (x >= 0 && y >= 0 && y <= x && y <= 2 - x * x) cout << "C";
        if (x <= 0 && y <= 0 && y >= x && y <= 2 - x * x) cout << "D";
        if (y >= 0 && y >= x && y >= 2 - x * x) cout << "E";
        if (x <= 0 && y <= 0 && y >= x && y >= 2 - x * x) cout << "F";
        if (x <= 0 && y <= x && y >= 2 - x * x) cout << "G";
        if (y <= 0 && y <= x && y <= 2 - x * x) cout << "H";
        if (x >= 0 && y >= 0 && y <= x && y >= 2 - x * x) cout << "J";
        if (x >= 0 && y <= 0 && y >= 2 - x * x) cout << "K";
        cout << endl;
    }
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter