結果
| 問題 |
No.3180 angles sum
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-14 10:37:21 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 421 bytes |
| コンパイル時間 | 3,214 ms |
| コンパイル使用メモリ | 276,124 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-06-14 10:37:35 |
| 合計ジャッジ時間 | 14,309 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 16 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void yn (bool f) {
if (f) std::cout << "Yes" << '\n';
else std::cout << "No" << '\n';
}
int main()
{
int test;
cin >> test;
long double ep = 1e-12;
while (test--) {
ll ax, ay, bx, by, cx, cy;
cin >> ax >> ay >> bx >> by >> cx >> cy;
yn(abs(atan2(ay, ax) + atan2(by, bx) - atan2(cy, cx)) < ep);
}
}