結果
| 問題 | No.2555 Intriguing Triangle | 
| コンテスト | |
| ユーザー |  PNJ | 
| 提出日時 | 2023-12-01 09:42:45 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 422 bytes | 
| コンパイル時間 | 184 ms | 
| コンパイル使用メモリ | 82,612 KB | 
| 実行使用メモリ | 66,776 KB | 
| 最終ジャッジ日時 | 2024-09-26 15:32:38 | 
| 合計ジャッジ時間 | 2,575 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 24 WA * 4 | 
ソースコード
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
    if max(b,c) > min(b,c) + a + x + y:
      continue
    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)
            
            
            
        