Advertisement
tuki2501

fcb030_tribeau.cpp

Nov 9th, 2021
1,577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. typedef long long ll;
  5.  
  6. int main() {
  7.   vector<ll> v(3); ll d;
  8.   cin >> v[0] >> v[1] >> v[2] >> d;
  9.   sort(v.begin(), v.end());
  10.   cout << (v[2] - v[0] <= d ? "Yes" : "No") << '\n';
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement