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