結果
| 問題 |
No.3180 angles sum
|
| コンテスト | |
| ユーザー |
Nachia
|
| 提出日時 | 2025-06-14 02:56:35 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 117 ms / 2,000 ms |
| コード長 | 470 bytes |
| コンパイル時間 | 845 ms |
| コンパイル使用メモリ | 68,236 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-06-14 02:56:40 |
| 合計ジャッジ時間 | 4,247 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 17 |
ソースコード
#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 && fx * cx + fy * cy > 0 ? "Yes\n" : "No\n");
}
int main(){
ios::sync_with_stdio(false); cin.tie(nullptr);
i64 T; cin >> T;
rep(i,T) testcase();
return 0;
}
Nachia