結果

問題 No.2555 Intriguing Triangle
ユーザー lloyzlloyz
提出日時 2023-12-13 22:12:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 375 ms
コンパイル使用メモリ 82,452 KB
実行使用メモリ 59,432 KB
最終ジャッジ日時 2024-09-27 05:31:36
合計ジャッジ時間 2,714 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

a = int(input())
b = int(input())
c = int(input())

for i in range(1, b + c - a):
    for j in range(1, b + c - a - i):
        if i * (a + i) * c**2 == b**2 * j * (a + j) and abs(b - c) < i + j + a:
            print("Yes")
            exit()
print("No")
0