結果
問題 | No.2628 Shrinkage |
ユーザー | ニックネーム |
提出日時 | 2024-02-16 23:36:27 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 368 bytes |
コンパイル時間 | 473 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 10,112 KB |
最終ジャッジ日時 | 2024-02-16 23:36:50 |
合計ジャッジ時間 | 2,162 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge16 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 30 ms
10,112 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | RE | - |
testcase_05 | WA | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | WA | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | WA | - |
testcase_15 | RE | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | RE | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | RE | - |
testcase_25 | RE | - |
testcase_26 | WA | - |
testcase_27 | RE | - |
ソースコード
for _ in range(int(input())): a,b,c,d,e,f,g,h = map(int,input().split()) i,j,k,l = e-a,f-b,g-c,h-d if i*l==j*k: print("No"); continue m = a+(l*(c-a)-k*(d-b))/(i*l-j*k)*i n = b+(l*(c-a)-k*(d-b))/(i*l-j*k)*j if m!=a: print("Yes" if abs((e-a)/(m-a)-(g-c)/(m-c))<1e-9 else "No") else: print("Yes" if abs((f-b)/(n-b)-(h-d)/(n-d))<1e-9 else "No")