結果

問題 No.2555 Intriguing Triangle
ユーザー PNJ
提出日時 2023-12-01 09:36:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 367 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-26 15:32:29
合計ジャッジ時間 2,054 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = 'No'
for x in range(1,b+c-a):
  for y in range(1,b+c-a):
    if a + x + y >= b + c:
      break
    A = a + x + y
    P = -x*(A**2) - x*(b**2) + x*(c**2) + A*(b**2) + A*(x**2)
    Q = -y*(A**2) - y*(c**2) + y*(b**2) + A*(c**2) + A*(y**2)
    if P*(b**2)*(y**2) == Q*(c**2)*(x**2):
      ans = 'Yes'
print(ans)
0