結果
| 問題 |
No.2555 Intriguing Triangle
|
| コンテスト | |
| ユーザー |
navel_tos
|
| 提出日時 | 2023-12-01 02:46:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 253 bytes |
| コンパイル時間 | 271 ms |
| コンパイル使用メモリ | 82,288 KB |
| 実行使用メモリ | 59,008 KB |
| 最終ジャッジ日時 | 2024-09-26 15:30:37 |
| 合計ジャッジ時間 | 2,439 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 WA * 5 |
ソースコード
a,b,c = [int(input()) for _ in range(3)]
for z in range(2+a,b+c):
for x in range(1,z+1):
y = z-a-x
if y < 1: continue
if b**2 * y * (a + y) == c**2 * x * (a + x):
if x>0 and y>0 and x+a+y == z: print('Yes'); exit()
print('No')
navel_tos