Advertisement
Amr1998

Untitled

Jun 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n,t,k,d;
  8. cin>>n>>t>>k>>d;
  9. if (2*t==2*d&&(n>!k)){
  10. cout<<"NO"<<endl;
  11. }else{
  12. if(n>k){
  13.  
  14. if(2*t<=(t+d)){
  15. cout<<"YES"<<endl;
  16. }
  17.  
  18. }
  19. else{
  20. cout<<"NO"<<endl;
  21. }
  22. }
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement