結果

問題 No.3180 angles sum
ユーザー GOTKAKO
提出日時 2025-06-14 00:07:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 504 bytes
コンパイル時間 2,064 ms
コンパイル使用メモリ 198,080 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-06-14 01:44:32
合計ジャッジ時間 4,919 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 16 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#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);
        vector<long long> A;
        for(auto &[x,y] : P) cin >> x >> y,A.push_back(x),A.push_back(y);

        long long now = A.at(1)*A.at(2)*A.at(4)+A.at(0)*A.at(3)*A.at(4)-A.at(0)*A.at(2)*A.at(5)+A.at(1)*A.at(3)*A.at(5);
        if(now == 0) cout << "Yes\n";
        else cout << "No\n";
    }
}
0