結果

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

ソースコード

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 * ay - bx * 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