結果

問題 No.2555 Intriguing Triangle
コンテスト
ユーザー Kude
提出日時 2023-12-01 01:03:44
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 64 ms / 2,000 ms
+ 130µs
コード長 447 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 224 ms
コンパイル使用メモリ 95,968 KB
実行使用メモリ 83,364 KB
最終ジャッジ日時 2026-09-04 23:49:32
合計ジャッジ時間 3,481 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

a = int(input())
b = int(input())
c = int(input())
ans = False
for x in range(1, b + c - a):
    for y in range(1, b + c - a - x):
        if 2 * max(a + x + y, b, c) < a + x + y + b + c:
            l1 = (a + y) * b * b + x * c * c - x * (a + y) * (a + x + y)
            l2 = (a + x) * c * c + y * b * b - y * (a + x) * (a + x + y)
            if b * b * y * y * l1 == c * c * x * x * l2:
                ans = True
print('Yes' if ans else 'No')
0