fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // Новый шкаф
  6. double a, b, x, y, z;
  7. cin >> a >> b >> x >> y >> z;
  8. if ((x < a && y < b) || (y < a && x < b) || (y < a && z < b) ||
  9. (z < a && y < b) || (x < a && z < b) || (z < a && x < b)) {
  10. cout << 1;
  11. } else {
  12. cout << 0;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 4392KB
stdin
5 6 2 4 3.5
stdout
1