Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- bool hit = 0;
- int R, x, y;
- cin >> R; cin >> x; cin >> y;
- if (-R <= x && x < 0 && 0 < y && y <= R)
- if ((x - R)*(x - R) + (y + R)*(y + R) >= R * R)
- hit = 1;
- else if (0 < x && x <= R && -R <= y && y < 0)
- if ((x + R)*(x + R) + (y - R)*(y - R) >= R * R)
- hit = 1;
- if (hit == 1)
- cout << "Eeee";
- else
- cout << "Bad";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement