Advertisement
kot_mapku3

1 E

Jun 2nd, 2020
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8.  
  9.     int D, X, Y;
  10.  
  11.     cin >> D;
  12.     cin >> X >> Y;
  13.  
  14.     if (pow(X, 2) + pow(Y, 2) <= pow(D, 2)) cout << "YES";
  15.     else cout << "NO";
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement