С++
роса#include <iostream>
#include <cmath>
using namespace std;
int main()
{
float x, y;
cout << "Input x" << endl;
cin >> x;
cout << "Input y" << endl;
cin >> y;
if (x*y>=0 && 2*fabs(x)+fabs(y)-2 <= 0)
{
cout << "Hit" << endl;
}
else if (x*y<=0 && x*x+y*y<1)
{
cout << "Hit" << endl;
} else
{
cout << "Miss" << endl;
}
return 0;
}