Advertisement
Derga

Untitled

Feb 27th, 2023
644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     double ax, ay, a;
  7.     cin >> ax >> ay >> a;
  8.  
  9.     if (abs(ax) > abs(a)) {
  10.         cout << boolalpha << (abs(ax) < abs(ay));
  11.     } else {
  12.         cout << boolalpha << (ax * ax + ay * ay <= a * a);
  13.     }
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement