結果

問題 No.2602 Real Collider
ユーザー ゼットゼット
提出日時 2024-01-12 22:01:32
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 347 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 76,552 KB
最終ジャッジ日時 2024-01-12 22:02:20
合計ジャッジ時間 34,699 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
51,636 KB
testcase_01 WA -
testcase_02 AC 37 ms
51,716 KB
testcase_03 AC 37 ms
52,992 KB
testcase_04 AC 35 ms
51,712 KB
testcase_05 AC 39 ms
51,712 KB
testcase_06 AC 39 ms
51,712 KB
testcase_07 AC 35 ms
51,712 KB
testcase_08 AC 35 ms
51,712 KB
testcase_09 AC 36 ms
51,712 KB
testcase_10 AC 923 ms
76,544 KB
testcase_11 AC 397 ms
76,288 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 328 ms
76,160 KB
testcase_16 AC 468 ms
76,288 KB
testcase_17 AC 527 ms
76,288 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 564 ms
76,288 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 317 ms
76,160 KB
testcase_27 WA -
testcase_28 AC 516 ms
76,288 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 447 ms
76,288 KB
testcase_32 AC 394 ms
76,288 KB
testcase_33 AC 476 ms
76,288 KB
testcase_34 AC 449 ms
76,288 KB
testcase_35 AC 306 ms
76,160 KB
testcase_36 AC 334 ms
76,160 KB
testcase_37 AC 476 ms
76,288 KB
testcase_38 AC 503 ms
76,288 KB
testcase_39 AC 498 ms
76,288 KB
testcase_40 AC 274 ms
76,296 KB
testcase_41 AC 564 ms
76,296 KB
testcase_42 AC 431 ms
76,296 KB
testcase_43 AC 446 ms
76,168 KB
testcase_44 AC 559 ms
76,296 KB
testcase_45 AC 367 ms
76,424 KB
testcase_46 AC 346 ms
76,168 KB
testcase_47 AC 513 ms
76,296 KB
testcase_48 AC 385 ms
76,168 KB
testcase_49 AC 344 ms
76,168 KB
testcase_50 AC 285 ms
76,168 KB
testcase_51 AC 297 ms
76,296 KB
testcase_52 AC 229 ms
76,296 KB
testcase_53 AC 480 ms
76,296 KB
testcase_54 AC 361 ms
76,168 KB
testcase_55 AC 401 ms
76,296 KB
testcase_56 AC 421 ms
76,168 KB
testcase_57 AC 373 ms
76,168 KB
testcase_58 AC 202 ms
76,552 KB
testcase_59 AC 432 ms
76,168 KB
testcase_60 AC 430 ms
76,168 KB
testcase_61 AC 330 ms
76,296 KB
testcase_62 AC 477 ms
76,296 KB
testcase_63 AC 509 ms
76,296 KB
testcase_64 AC 568 ms
76,296 KB
testcase_65 AC 356 ms
76,296 KB
testcase_66 AC 517 ms
76,296 KB
testcase_67 AC 269 ms
76,296 KB
testcase_68 AC 326 ms
76,424 KB
testcase_69 AC 242 ms
76,552 KB
testcase_70 AC 266 ms
76,168 KB
testcase_71 AC 322 ms
76,296 KB
testcase_72 AC 472 ms
76,168 KB
testcase_73 AC 370 ms
76,296 KB
testcase_74 AC 446 ms
76,296 KB
testcase_75 AC 504 ms
76,296 KB
testcase_76 AC 413 ms
76,296 KB
testcase_77 AC 463 ms
76,168 KB
testcase_78 AC 526 ms
76,296 KB
testcase_79 AC 460 ms
76,296 KB
testcase_80 AC 547 ms
76,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

Q=int(input())
a,b,c,d,e,f=map(int,input().split())
x1=(a**2+b**2)*(d-f)+(c**2+d**2)*(f-b)+(e**2+f**2)*(b-d)
y1=(a**2+b**2)*(e-c)+(c**2+d**2)*(a-e)+(e**2+f**2)*(c-a)
k=2*(a*(d-f)+c*(f-b)+e*(b-d))
r2=(x1-a*k)**2+(y1-b*k)**2
for _ in range(Q):
  x,y=map(int,input().split())
  if (x1-x*k)**2+(y1-y*k)**2<=r2:
    print('Yes')
  else:
    print('No')
0