結果
問題 |
No.3180 angles sum
|
ユーザー |
|
提出日時 | 2025-06-14 10:38:26 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 690 ms / 2,000 ms |
コード長 | 421 bytes |
コンパイル時間 | 2,927 ms |
コンパイル使用メモリ | 276,216 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-14 10:38:40 |
合計ジャッジ時間 | 12,826 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 17 |
ソースコード
#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-15; 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); } }