結果

問題 No.2555 Intriguing Triangle
ユーザー ニックネームニックネーム
提出日時 2023-12-01 00:18:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 364 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-09-26 15:20:04
合計ジャッジ時間 2,013 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,624 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 30 ms
10,752 KB
testcase_06 AC 30 ms
10,752 KB
testcase_07 AC 29 ms
10,752 KB
testcase_08 AC 28 ms
10,752 KB
testcase_09 AC 31 ms
10,624 KB
testcase_10 AC 39 ms
10,752 KB
testcase_11 AC 37 ms
10,880 KB
testcase_12 WA -
testcase_13 AC 40 ms
10,752 KB
testcase_14 AC 42 ms
10,752 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 29 ms
10,752 KB
testcase_18 WA -
testcase_19 AC 28 ms
10,624 KB
testcase_20 AC 80 ms
10,752 KB
testcase_21 AC 81 ms
10,752 KB
testcase_22 WA -
testcase_23 AC 30 ms
10,624 KB
testcase_24 AC 29 ms
10,752 KB
testcase_25 AC 30 ms
10,624 KB
testcase_26 AC 31 ms
10,624 KB
testcase_27 WA -
testcase_28 AC 29 ms
10,752 KB
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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
        ad = (ab**2+bd**2-bd*(ab**2+bc**2-ac**2)/bc)**0.5
        ae = (ac**2+ec**2-ec*(ac**2+bc**2-ab**2)/bc)**0.5
        if (ab**2+ad**2-bd**2)/ab/ad==(ac**2+ae**2-ec**2)/ac/ae: f = True
print("Yes" if f else "No")
0