fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4. int a, b, r;
  5. cin >> a >> b >> r;
  6. if (a*a+b*b<=r*r)
  7. cout << "YES";
  8. else
  9. cout << "NO";
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5320KB
stdin
6
8
10


stdout
YES