結果
問題 | No.3180 angles sum |
ユーザー |
|
提出日時 | 2025-06-13 22:32:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 583 bytes |
コンパイル時間 | 1,529 ms |
コンパイル使用メモリ | 163,860 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-14 01:25:39 |
合計ジャッジ時間 | 9,925 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 13 WA * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll,ll> P; #define REP(i,n) for(ll i=0;i<ll(n);i++) const double EPS=1e-10; int main(void){ cin.tie(nullptr); ios_base::sync_with_stdio(false); ll i,j; int T; cin >> T; while(T--){ double ax,ay,bx,by,cx,cy; cin >> ax >> ay >> bx >> by >> cx >> cy; double a=acos(ax/sqrt(ax*ax+ay*ay)); double b=acos(bx/sqrt(bx*bx+by*by)); double c=acos(cx/sqrt(cx*cx+cy*cy)); if(abs(a+b-c)<EPS) cout << "Yes" << endl; else cout << "No" << endl; } return 0; }