結果
問題 | No.2555 Intriguing Triangle |
ユーザー |
![]() |
提出日時 | 2023-12-01 09:43:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 60 ms / 2,000 ms |
コード長 | 423 bytes |
コンパイル時間 | 287 ms |
コンパイル使用メモリ | 82,464 KB |
実行使用メモリ | 66,048 KB |
最終ジャッジ日時 | 2024-09-26 15:32:35 |
合計ジャッジ時間 | 2,394 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 28 |
ソースコード
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)