fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. for (int i = 0; i < n; i++) {
  8. long double a, b, c;
  9. cin >> a >> b >> c;
  10. long long x, y, z;
  11. x = (long long) (a * 100000 + 0.5);
  12. y = (long long) (b * 100000 + 0.5);
  13. z = (long long) (c * 100000 + 0.5);
  14. //cout << x << " " << y << " " << z << endl;
  15. if (100000*(x*y + x*z + y*z) < x*y*z) {
  16. cout << "YES\n";
  17. } else {
  18. cout << "NO\n";
  19. }
  20. }
  21. }
Success #stdin #stdout 0s 3416KB
stdin
3
2.5 3.5 4.5
3.0 3.0 3.0
2.0 3.0 4.0
stdout
YES
NO
NO