提出 #76230031


ソースコード 拡げる

for _ in range(int(input())):
    X1, Y1, R1, X2, Y2, R2 = map(int, input().split())
    t = (X1 - X2) ** 2 + (Y1 - Y2) ** 2
    if (R1 - R2) ** 2 <= t <= (R1 + R2) ** 2:
        print("Yes")
    else:
        print("No")

提出情報

提出日時
問題 B - Two Rings
ユーザ shogo314
言語 Python (PyPy 3.11-v7.3.20)
得点 250
コード長 229 Byte
結果 AC
実行時間 58 ms
メモリ 80304 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 250 / 250
結果
AC × 1
AC × 13
セット名 テストケース
Sample 00_sample_00.txt
All 00_sample_00.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 56 ms 79240 KiB
01_random_00.txt AC 57 ms 80100 KiB
01_random_01.txt AC 57 ms 80100 KiB
01_random_02.txt AC 58 ms 80304 KiB
01_random_03.txt AC 57 ms 80116 KiB
01_random_04.txt AC 57 ms 80040 KiB
01_random_05.txt AC 57 ms 80184 KiB
01_random_06.txt AC 57 ms 80180 KiB
01_random_07.txt AC 57 ms 80024 KiB
01_random_08.txt AC 57 ms 80008 KiB
01_random_09.txt AC 57 ms 80112 KiB
01_random_10.txt AC 57 ms 80188 KiB
01_random_11.txt AC 57 ms 80100 KiB