結果
問題 |
No.3180 angles sum
|
ユーザー |
|
提出日時 | 2025-06-13 21:33:56 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 508 bytes |
コンパイル時間 | 1,963 ms |
コンパイル使用メモリ | 197,644 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-06-14 01:22:47 |
合計ジャッジ時間 | 5,217 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); vector<double> An(3); for(int i=0; i<3; i++){ auto [x,y] = P.at(i); An.at(i) = atan2(y,x); } if(abs(An.at(0)+An.at(1)-An.at(2)) <= 1e-9) cout << "Yes\n"; else cout << "No\n"; } }