提出 #76275131


ソースコード 拡げる

#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";
	}
}

提出情報

提出日時
問題 B - Two Rings
ユーザ ywrow
言語 C++23 (GCC 15.2.0)
得点 250
コード長 310 Byte
結果 AC
実行時間 1 ms
メモリ 3628 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 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