fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6. cin >> a >> b >> c;
  7. bool condition = (a < b + c && b < a + c && c < a + b);
  8. cout << (char)(condition * 'Y' + !condition * 'N')
  9. << (char)(condition * 'E' + !condition * 'O')
  10. << (char)(condition * 'S' + !condition * ' ');
  11. return 0;
  12. }
Success #stdin #stdout 0s 15232KB
stdin
3 4 7
stdout
NO