結果

問題 No.2628 Shrinkage
ユーザー Koi
提出日時 2024-02-16 23:26:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 293 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 82,252 KB
実行使用メモリ 54,900 KB
最終ジャッジ日時 2024-09-28 22:14:46
合計ジャッジ時間 2,104 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
answers=[]
for _ in range(T):
    x1,y1,x2,y2,X1,Y1,X2,Y2=map(int,input().split())
    s=(X1-x1)*(y2-x1)-(x2-x1)*(Y1-y1)
    t=(X1-x2)*(Y2-y1)-(X2-x1)*(Y1-y1)
    if(s*t<=0):
        answers.append("No")
    else:
        answers.append("Yes")
for ans in answers:
    print(ans)
0