結果
問題 |
No.3180 angles sum
|
ユーザー |
|
提出日時 | 2025-06-13 21:59:57 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 369 bytes |
コンパイル時間 | 1,766 ms |
コンパイル使用メモリ | 195,252 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-06-13 22:00:10 |
合計ジャッジ時間 | 11,741 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | WA * 12 RE * 1 |
ソースコード
#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(); }