Submission #76275131


Source Code Expand

#include<bits/stdc++.h>
using namespace std;
int T;
int main(){
	cin>>T;
	while(T--){
		long long x1,y1,r1,x2,y2,r2;
		cin>>x1>>y1>>r1>>x2>>y2>>r2;
		if((r1-r2)*(r1-r2)<=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)&&(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)<=(r1+r2)*(r1+r2)){
			cout<<"Yes\n";
		}else cout<<"No\n";
	}
}

Submission Info

Submission Time
Task B - Two Rings
User ywrow
Language C++23 (GCC 15.2.0)
Score 250
Code Size 310 Byte
Status AC
Exec Time 1 ms
Memory 3628 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 1 ms 3572 KiB
01_random_00.txt AC 1 ms 3524 KiB
01_random_01.txt AC 1 ms 3456 KiB
01_random_02.txt AC 1 ms 3392 KiB
01_random_03.txt AC 1 ms 3456 KiB
01_random_04.txt AC 1 ms 3404 KiB
01_random_05.txt AC 1 ms 3628 KiB
01_random_06.txt AC 1 ms 3404 KiB
01_random_07.txt AC 1 ms 3412 KiB
01_random_08.txt AC 1 ms 3464 KiB
01_random_09.txt AC 1 ms 3472 KiB
01_random_10.txt AC 1 ms 3384 KiB
01_random_11.txt AC 1 ms 3388 KiB