結果
問題 |
No.2628 Shrinkage
|
ユーザー |
|
提出日時 | 2024-02-16 23:44:17 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 564 bytes |
コンパイル時間 | 1,611 ms |
コンパイル使用メモリ | 167,492 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-09-28 22:46:35 |
合計ジャッジ時間 | 2,425 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long #define pt pair<int,int> #define x first #define y second __int128 one=1; int dist(pt a,pt b) { return (a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y); } int32_t main() { ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); int t;cin>>t; while(t--) { pt a,b,c,d;cin>>a.x>>a.y;cin>>b.x>>b.y;cin>>c.x>>c.y;cin>>d.x>>d.y; if((a.x-b.x)*one*(c.y-d.y)==(a.y-b.y)*one*(c.x-d.x) && dist(a,b)>dist(c,d)) {cout<<"Yes\n";} else {cout<<"No\n";} } return 0; }