1 条题解
-
0
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int T;cin>>T; for(int i=0;i<T;i++){ int xa,ya,xb,yb,xc,yc,xd,yd; cin>>xa>>ya>>xb>>yb>>xc>>yc>>xd>>yd; int re1=(yb-ya)*(yd-yc); int re2=(xb-xa)*(xd-xc); if(re1==-re2){ cout<<"Yes\n"; } else cout<<"No\n"; } return 0; }
信息
- ID
- 1080
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 7
- 标签
- 递交数
- 189
- 已通过
- 48
- 上传者