結果
| 問題 |
No.2555 Intriguing Triangle
|
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2023-12-01 00:54:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 446 bytes |
| コンパイル時間 | 410 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 74,112 KB |
| 最終ジャッジ日時 | 2024-09-26 15:25:24 |
| 合計ジャッジ時間 | 2,433 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 WA * 6 |
ソースコード
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):
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 ((a + x + y) * (b * b - x * x) + l1) ** 2 * l2 * c * c == ((a + x + y) * (c * c - y * y) + l2) ** 2 * l1 * b * b:
ans = True
print('Yes' if ans else 'No')
Kude