結果

問題 No.2555 Intriguing Triangle
ユーザー tails
提出日時 2023-12-01 00:36:16
言語 cLay
(20241019-1)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 415 bytes
コンパイル時間 3,380 ms
コンパイル使用メモリ 172,304 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-26 15:22:34
合計ジャッジ時間 4,301 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@a,@b,@c;
rep(d,1,201){
	rep(e,1,201){
		double s=d+a+e;
		if(abs(b-c)<s<b+c){
			double cosb=double(s*s+b*b-c*c)/double(2*s*b);
			double ff=b*b+d*d-2*b*d*cosb;
			double cosd=(b*b+ff-d*d)/(2*b*sqrt(ff));
			double cosc=double(s*s+c*c-b*b)/double(2*s*c);
			double gg=c*c+e*e-2*c*e*cosc;
			double cose=(c*c+gg-e*e)/(2*c*sqrt(gg));
			if(abs(cosd-cose)<1e-8){
				wt("Yes");
				exit(0);
			}
		}
	}
}
wt("No");
0