Advertisement
elynx

r57_wrong

Sep 29th, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. double x, y;
  6. cin >> x >> y;
  7. if (x <= 1 && x >= -1 && y <= 1 && y >= -1 || x * x + y * y == 1) {
  8. cout << "YES";
  9. }
  10. else {
  11. cout << "NO";
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement