LINK TẢI ĐỀ BÀI
YES
using namespace std; long long A,B,C,D; int main(){ cin>>A>>B>>C>>D; if(max({A,B,C})-min({A,B,C})<=D)cout<<"Yes"; else cout<<"No"; return 0; }
Comments
YES
include <bits/stdc++.h>
using namespace std; long long A,B,C,D; int main(){ cin>>A>>B>>C>>D; if(max({A,B,C})-min({A,B,C})<=D)cout<<"Yes"; else cout<<"No"; return 0; }