結果
問題 |
No.3180 angles sum
|
ユーザー |
|
提出日時 | 2025-06-14 00:02:10 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 553 bytes |
コンパイル時間 | 1,862 ms |
コンパイル使用メモリ | 198,088 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-14 01:26:58 |
合計ジャッジ時間 | 5,394 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 13 WA * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while(T--){ vector<pair<long long,long long>> P(3); for(auto &[x,y] : P) cin >> x >> y,y = abs(y); //1e-9はセルフhack済み. vector<long double> An(3); for(int i=0; i<3; i++){ auto [x,y] = P.at(i); An.at(i) = atan2l(y,x); } if(abs(An.at(0)+An.at(1)-An.at(2)) <= 1e-10) cout << "Yes\n"; else cout << "No\n"; } }