Submission #76232704


Source Code Expand

T = int(input())
for _ in range(T):
    S = list(map(int, input().split()))
    x1 = S[0]
    y1 = S[1]
    r1 = S[2]
    x2 = S[3]
    y2 = S[4]
    r2 = S[5]
    d = (x1 - x2) ** 2 + (y1 - y2) ** 2
    if (r1 - r2) ** 2 <= d <= (r1 + r2) ** 2:
        print("Yes")
    else:
        print("No")

Submission Info

Submission Time
Task B - Two Rings
User msd7
Language Python (PyPy 3.11-v7.3.20)
Score 250
Code Size 311 Byte
Status AC
Exec Time 55 ms
Memory 80384 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 250 / 250
Status
AC × 1
AC × 13
Set Name Test Cases
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
Case Name Status Exec Time Memory
00_sample_00.txt AC 52 ms 79456 KiB
01_random_00.txt AC 52 ms 80216 KiB
01_random_01.txt AC 53 ms 79992 KiB
01_random_02.txt AC 53 ms 80228 KiB
01_random_03.txt AC 55 ms 80228 KiB
01_random_04.txt AC 54 ms 79992 KiB
01_random_05.txt AC 54 ms 80384 KiB
01_random_06.txt AC 53 ms 80384 KiB
01_random_07.txt AC 52 ms 80092 KiB
01_random_08.txt AC 53 ms 80256 KiB
01_random_09.txt AC 53 ms 80200 KiB
01_random_10.txt AC 52 ms 80200 KiB
01_random_11.txt AC 53 ms 80092 KiB