結果
| 問題 | No.3180 angles sum | 
| コンテスト | |
| ユーザー |  MM | 
| 提出日時 | 2025-06-13 23:19:59 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 501 bytes | 
| コンパイル時間 | 1,970 ms | 
| コンパイル使用メモリ | 195,256 KB | 
| 実行使用メモリ | 7,848 KB | 
| 最終ジャッジ日時 | 2025-06-13 23:20:12 | 
| 合計ジャッジ時間 | 12,399 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 1 WA * 12 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
double my_atan(ll x, ll y){
	if(x == 0)
		return asin(1);
	if(y == 0){
		if(x >= 0) return 0;
		else return acos(-1);
	}
	double res = atan(double(y) / double(x));
	if(res < 0) res += acos(-1);
	return res;
}
void solve(){
	ll ax,ay,bx,by,cx,cy;
	cin >> ax >> ay >> bx >> by >> cx >> cy;
	cout << (my_atan(ax,ay) + my_atan(bx,by) == my_atan(cx,cy) ? "Yes" : "No") << endl;
}
int main(){
	int t;
	cin >> t;
	while(t--)
		solve();
}
            
            
            
        