結果

問題 No.3180 angles sum
コンテスト
ユーザー Carpenters-Cat
提出日時 2025-06-13 21:59:57
言語 C++17
(gcc 15.2.0 + boost 1.90.0)
コンパイル:
g++-15 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
RE  
実行時間 -
コード長 369 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 992 ms
コンパイル使用メモリ 214,368 KB
実行使用メモリ 9,416 KB
最終ジャッジ日時 2026-07-12 05:21:29
合計ジャッジ時間 8,425 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other AC * 3 WA * 12 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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