結果
| 問題 |
No.2555 Intriguing Triangle
|
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2023-12-01 00:39:13 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 472 bytes |
| コンパイル時間 | 262 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 16,640 KB |
| 最終ジャッジ日時 | 2024-09-26 15:23:19 |
| 合計ジャッジ時間 | 12,094 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 WA * 6 TLE * 1 -- * 9 |
ソースコード
from decimal import Decimal
de,ab,ac = Decimal(input()),Decimal(input()),Decimal(input())
f = False
for bd in range(1,int(ab+ac-de)):
for ec in range(1,int(ab+ac-de)-bd):
bd = Decimal(bd); ec = Decimal(ec); bc = bd+de+ec
ad = (ab*ab+bd*bd-(ab*ab+bc*bc-ac*ac)*bd/bc)**Decimal("0.5")
ae = (ac*ac+ec*ec-(ac*ac+bc*bc-ab*ab)*ec/bc)**Decimal("0.5")
if (ab*ab+ad*ad-bd*bd)*ac*ae==(ac*ac+ae*ae-ec*ec)*ab*ad: f = True
print("Yes" if f else "No")
ニックネーム