結果

問題 No.2555 Intriguing Triangle
ユーザー navel_tos
提出日時 2023-12-01 02:52:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 82,396 KB
実行使用メモリ 61,176 KB
最終ジャッジ日時 2024-09-26 15:30:41
合計ジャッジ時間 2,605 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 12 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#ガチの天才数学パズルじゃん、なんだこれ

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 b+z < c and c+z < b: print('Yes'); exit()
      
print('No')
0