結果

問題 No.3180 angles sum
ユーザー Carpenters-Cat
提出日時 2025-06-13 22:01:39
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 372 bytes
コンパイル時間 1,928 ms
コンパイル使用メモリ 194,744 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-06-14 01:41:59
合計ジャッジ時間 11,978 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 16 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void solve() {
	ll ax, ay, bx, by, cx, cy;
	cin >> ax >> ay >> bx >> by >> cx >> cy;
	ll dx = ax * bx - ay * by, dy = ay * bx + by * ax;
	ll g = gcd(abs(dx), abs(dy));
	// dx /= g; dy /= g;
	cout << ((dx * cy == dy * cx) ? "Yes" : "No") << endl;
}
int main () {
	int T;
	cin >> T;
	while (T--) solve();
}
0