結果
| 問題 |
No.3180 angles sum
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-13 22:03:29 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 700 bytes |
| コンパイル時間 | 1,623 ms |
| コンパイル使用メモリ | 194,616 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-06-14 01:42:12 |
| 合計ジャッジ時間 | 4,957 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 16 WA * 1 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
void solve() {
long long x1,x2,x3,y1,y2,y3;
cin>>x1>>y1>>x2>>y2>>x3>>y3;
// need to calculate whethere tan(a+b) = tan(c)
// should we use double ?
long long left = x3*(x2*y1 + y2*x1) ;
long long right = y3*(x1*x2 - y1*y2);
if(left == right )
cout<<"Yes\n";
else
cout<<"No\n";
}
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.flush();
cout<<fixed<<setprecision(9);
#ifndef ONLINE_JUDGE
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
#endif
int t=1;
cin>>t;
while(t--){
solve();
}
return 0;
}