結果
| 問題 |
No.2555 Intriguing Triangle
|
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2023-12-01 01:02:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 417 bytes |
| コンパイル時間 | 118 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-26 15:26:17 |
| 合計ジャッジ時間 | 2,038 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 WA * 2 |
ソースコード
de,ab,ac = int(input()),int(input()),int(input())
f = False
for bd in range(1,ab+ac-de):
for ec in range(1,ab+ac-de-bd):
bc = bd+de+ec
if ab+bc<=ac or ac+bc<=ab: continue
ad = (ab*ab+bd*bd-(ab*ab+bc*bc-ac*ac)*bd/bc)**0.5
ae = (ac*ac+ec*ec-(ac*ac+bc*bc-ab*ab)*ec/bc)**0.5
if abs((ab*ab+ad*ad-bd*bd)*ac*ae-(ac*ac+ae*ae-ec*ec)*ab*ad)<1e-9: f = True
print("Yes" if f else "No")
ニックネーム