task1.8.cpp 452 B

1234567891011121314151617181920212223
  1. #include <iostream>
  2. #include <algorithm>
  3. int main() {
  4. int A, B, C, R, S, T;
  5. std::cin >> A >> B >> C >> R >> S >> T;
  6. int box[3] = {A, B, C};
  7. int package[3] = {R, S, T};
  8. std::sort(box, box + 3);
  9. std::sort(package, package + 3);
  10. if (package[0] <= box[0] && package[1] <= box[1] && package[2] <= box[2]) {
  11. std::cout << "Yes" << std::endl;
  12. } else {
  13. std::cout << "No" << std::endl;
  14. }
  15. return 0;
  16. }