Submission #76239619


Source Code Expand

import math

def f():
    x1, y1, r1, x2, y2, r2 = map(int, input().split())
    
    if (r1 - r2)**2 <= (x1 - x2)**2 + (y1 - y2)**2 <= (r1 + r2)**2:
        print("Yes")
    else:
        print("No")

t = int(input())
for _ in range(t):
    f()

Submission Info

Submission Time
Task B - Two Rings
User gett
Language Python (PyPy 3.11-v7.3.20)
Score 250
Code Size 257 Byte
Status AC
Exec Time 49 ms
Memory 80496 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 47 ms 79720 KiB
01_random_00.txt AC 48 ms 80388 KiB
01_random_01.txt AC 49 ms 80188 KiB
01_random_02.txt AC 48 ms 80456 KiB
01_random_03.txt AC 48 ms 80368 KiB
01_random_04.txt AC 48 ms 80468 KiB
01_random_05.txt AC 49 ms 80068 KiB
01_random_06.txt AC 49 ms 80092 KiB
01_random_07.txt AC 49 ms 80144 KiB
01_random_08.txt AC 48 ms 80368 KiB
01_random_09.txt AC 48 ms 80136 KiB
01_random_10.txt AC 48 ms 80144 KiB
01_random_11.txt AC 48 ms 80496 KiB