Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <cmath>
- #include <algorithm>
- #include <cstdlib>
- #include <limits.h>
- #include <string>
- #define ll long long
- using namespace std;
- void Fast_IO();
- void Rofyda_Elghadban(){
- #ifndef ONLINE_JUDGE
- freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
- #endif
- }
- int main()
- { Rofyda_Elghadban();
- //Fast_IO();
- //freopen("input.txt","r",stdin);
- //freopen("output.txt","r",stdout);
- ll x1,y1,x2,y2,x3,y3,x4,y4,res1,res2,res3,res4;
- cin>>x1>>y1>>x2>>y2>>x3>>y3>>x4>>y4;
- res1=x2-x1;
- res2=y2-y1;
- res3=x4-x3;
- res4=y4-y3;
- if((res2/res1)==(res4/res3)){
- cout<<"YES"<<endl;
- }else{
- cout<<"NO"<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement