AhmedAshraff

Untitled

Nov 23rd, 2024
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.68 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. #define boAshraf ios_base::sync_with_stdio(false); cin.tie(NULL);
  3. #define ll long long
  4. #define sz(s) (int)(s).size()
  5. #define all(s) (s).begin(),(s).end()
  6. using namespace std;
  7. void File();
  8. void sol();
  9. int main() {
  10.     boAshraf
  11.     File();
  12.     int t = 1;
  13. //    cin >> t;
  14.     while (t--) {
  15.         sol();
  16.     }
  17.     return 0;
  18. }
  19.  
  20. void sol() {
  21.     int l,r;
  22.     cin>>l>>r;
  23.     string ans="No";
  24.     for (int i = 0; i < 3; ++i) {
  25.         int x;
  26.         cin>>x;
  27.         if(x>=l && x<=r)ans="Yes";
  28.     }
  29.     cout<<ans;
  30. }
  31.  
  32. void File() {
  33. #ifndef ONLINE_JUDGE
  34.     freopen("input.txt", "r", stdin);
  35.     freopen("output.txt", "w", stdout);
  36. #endif
  37. }
Advertisement
Add Comment
Please, Sign In to add comment