Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<bits/stdc++.h>
- #define ll long long
- #define ull unsigned long long
- using namespace std;
- int main() {
- ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
- long double x1,y1,x2,y2;
- cin>>x1>>y1>>x2>>y2;
- long double a1,b1,a2,b2;
- cin>>a1>>b1>>a2>>b2;
- long double m1=(y2-y1)/(x2-x1);
- long double m2=(b2-b1)/(a2-a1);
- if(m1==m2) cout<<"YES";
- else cout<<"NO";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement