結果
問題 | No.3180 angles sum |
ユーザー |
👑 ![]() |
提出日時 | 2025-06-13 22:04:53 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 445 bytes |
コンパイル時間 | 742 ms |
コンパイル使用メモリ | 67,980 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-14 01:42:18 |
合計ジャッジ時間 | 4,066 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 16 WA * 1 |
ソースコード
#include <iostream> using i64 = long long; #define rep(i,n) for(i64 i=0; i<i64(n); i++) using namespace std; void testcase(){ i64 ax, ay, bx, by, cx, cy; cin >> ax >> ay >> bx >> by >> cx >> cy; i64 fx = ax * bx - ay * by; i64 fy = ax * by + ay * bx; cout << (fx * cy == fy * cx ? "Yes\n" : "No\n"); } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); i64 T; cin >> T; rep(i,T) testcase(); return 0; }