Submission #76249728


Source Code Expand

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

Submission Info

Submission Time
Task B - Two Rings
User hydroxed_sil
Language Python (PyPy 3.11-v7.3.20)
Score 250
Code Size 167 Byte
Status AC
Exec Time 52 ms
Memory 80452 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 50 ms 79528 KiB
01_random_00.txt AC 51 ms 80428 KiB
01_random_01.txt AC 51 ms 80248 KiB
01_random_02.txt AC 51 ms 80248 KiB
01_random_03.txt AC 51 ms 80268 KiB
01_random_04.txt AC 51 ms 80452 KiB
01_random_05.txt AC 51 ms 80248 KiB
01_random_06.txt AC 52 ms 80396 KiB
01_random_07.txt AC 52 ms 80428 KiB
01_random_08.txt AC 51 ms 80396 KiB
01_random_09.txt AC 52 ms 80312 KiB
01_random_10.txt AC 52 ms 80268 KiB
01_random_11.txt AC 51 ms 80296 KiB