Advertisement
Rofyda_Elghadban1

Untitled

Sep 7th, 2022
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. #include <iomanip>
  4. #include <cmath>
  5. #include <algorithm>
  6. #include <cstdlib>
  7. #include <limits.h>
  8. #include <string>
  9.  
  10. #define ll long long
  11.  
  12. using namespace std;
  13. void Fast_IO();
  14. void Rofyda_Elghadban(){
  15. #ifndef ONLINE_JUDGE
  16. freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
  17. #endif
  18. }
  19.  
  20.  
  21.  
  22. int main()
  23. { Rofyda_Elghadban();
  24. //Fast_IO();
  25. //freopen("input.txt","r",stdin);
  26. //freopen("output.txt","r",stdout);
  27. ll x1,y1,x2,y2,x3,y3,x4,y4,res1,res2,res3,res4;
  28. cin>>x1>>y1>>x2>>y2>>x3>>y3>>x4>>y4;
  29. res1=x2-x1;
  30. res2=y2-y1;
  31. res3=x4-x3;
  32. res4=y4-y3;
  33. if((res2/res1)==(res4/res3)){
  34. cout<<"YES"<<endl;
  35. }else{
  36. cout<<"NO"<<endl;
  37. }
  38.  
  39. return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement