結果
| 問題 | No.2555 Intriguing Triangle |
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2023-12-01 00:25:52 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 526 bytes |
| 記録 | |
| コンパイル時間 | 327 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,836 KB |
| 最終ジャッジ日時 | 2026-04-13 17:54:30 |
| 合計ジャッジ時間 | 16,176 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 WA * 9 TLE * 2 |
ソースコード
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 = (Decimal(ab**2+bd**2)-Decimal(bd*(ab**2+bc**2-ac**2))/Decimal(bc))**Decimal("0.5")
ae = (Decimal(ac**2+ec**2)-Decimal(ec*(ac**2+bc**2-ab**2))/Decimal(bc))**Decimal("0.5")
if (ab**2+ad**2-bd**2)*ac*ae==(ac**2+ae**2-ec**2)*ab*ad: f = True
print("Yes" if f else "No")
ニックネーム