結果
| 問題 | No.3180 angles sum |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-14 04:19:18 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 614 ms / 2,000 ms |
| コード長 | 583 bytes |
| 記録 | |
| コンパイル時間 | 1,812 ms |
| コンパイル使用メモリ | 163,856 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-06-14 04:19:29 |
| 合計ジャッジ時間 | 11,039 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 17 |
ソースコード
#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-14;
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;
}