結果

問題 No.3180 angles sum
コンテスト
ユーザー Rumain831
提出日時 2025-06-13 22:46:02
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 720 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 225 ms
コンパイル使用メモリ 96,232 KB
実行使用メモリ 85,156 KB
最終ジャッジ日時 2026-07-12 05:36:42
合計ジャッジ時間 7,475 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

t=int(input())

for _ in range(t):
    ax, ay, bx, by, cx, cy=map(int, input().split())
    bumbo=ax*bx*cx
    if ax>bx: ax, ay, bx, by=bx, by, ax, ay
    if bumbo==0:
        if ax==0:
            if bx==0:
                if cy==0: print('Yes\n')
                else: print("No\n")
            else:
                if by==0:
                    if cx==0: print("Yes\n")
                    else: print("No\n")
                else:
                    if(by*cy==bx*cx): print("Yes\n")
                    else: print("No\n")
        else:
            if ay*by==ax*bx: print("Yes\n")
            else: print("Noc\n")
    else:
        if ay*bx*cx+by*ax*cx==cy*(ax*bx-ay*by): print("Yes\n")
        else: print("No\n")
0