結果
| 問題 | No.2628 Shrinkage | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-02-16 23:34:08 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 617 bytes | 
| コンパイル時間 | 1,600 ms | 
| コンパイル使用メモリ | 167,380 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-09-28 22:31:03 | 
| 合計ジャッジ時間 | 2,430 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 24 WA * 4 | 
ソースコード
#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) && (a.x-b.x)*one*(c.x-d.x)+(a.y-b.y)*one*(c.y-d.y)>0) {cout<<"Yes\n";}
        else {cout<<"No\n";}
    }
    return 0;
}
            
            
            
        