結果

問題 No.2628 Shrinkage
ユーザー 乾麺乾麺
提出日時 2024-03-26 14:18:19
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 796 bytes
コンパイル時間 7,608 ms
コンパイル使用メモリ 186,988 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-03-26 14:18:36
合計ジャッジ時間 4,429 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 RE -
testcase_04 WA -
testcase_05 RE -
testcase_06 WA -
testcase_07 RE -
testcase_08 WA -
testcase_09 WA -
testcase_10 RE -
testcase_11 RE -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 RE -
testcase_16 WA -
testcase_17 RE -
testcase_18 RE -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,a,b) for(int i=a;i<b;i++)
using vi = vector<int>; // intの1次元の型に vi という別名をつける
using vvi = vector<vi>; // intの2次元の型に vvi という別名をつける
//using mint = modint998244353;
const long long INF = 1e18;
//bit全探索 rep(i,0,1<<(n-1)){rep(j,0,n-1)if(I&(1<<j))}
//int a = s[0] - ‘0’;文字列から数字
//int a=atoi(s.c_str());
int main() {int t;
cin>>t;
rep(i,0,t){
	int x1,y1,x2,y2,X1,Y1,X2,Y2;
	cin>>x1>>y1>>x2>>y2>>X1>>Y1>>X2>>Y2;
    double a=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2);
	double b=(X1-X2)*(X1-X2)+(Y1-Y2)*(Y1-Y2);
	double c=(y2-y1)/(x2-x1);
	double d=(Y2-Y1)/(X2-X1);
	if(a>b&&c==d)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
}
}
0