提出 #76285531


ソースコード 拡げる

T = int(input())

for i in range(1,T+1):
    A, B ,C ,X ,Y ,R = map(int,input().split())
    D = abs(A-X)
    E = abs(B-Y)
    if ((C-R)**2) <= (D**2) + (E**2) <= ((C+R)**2):
        print("Yes")
    else:
        print("No") 
    

提出情報

提出日時
問題 B - Two Rings
ユーザ meibe
言語 Python (CPython 3.13.7)
得点 250
コード長 241 Byte
結果 AC
実行時間 10 ms
メモリ 9272 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 10 ms 9272 KiB
01_random_00.txt AC 9 ms 9240 KiB
01_random_01.txt AC 9 ms 9272 KiB
01_random_02.txt AC 10 ms 9140 KiB
01_random_03.txt AC 9 ms 9236 KiB
01_random_04.txt AC 9 ms 9080 KiB
01_random_05.txt AC 9 ms 9184 KiB
01_random_06.txt AC 9 ms 9140 KiB
01_random_07.txt AC 9 ms 9056 KiB
01_random_08.txt AC 9 ms 9196 KiB
01_random_09.txt AC 9 ms 9196 KiB
01_random_10.txt AC 9 ms 9208 KiB
01_random_11.txt AC 9 ms 9068 KiB