結果

問題 No.1944 ∞
ユーザー gew1fw
提出日時 2025-06-12 12:57:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 339 bytes
コンパイル時間 205 ms
コンパイル使用メモリ 82,580 KB
実行使用メモリ 104,020 KB
最終ジャッジ日時 2025-06-12 13:04:27
合計ジャッジ時間 3,371 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n, x, y = map(int, input().split())
r = list(map(int, input().split()))

max_r = max(r)
sum_r = sum(r)
d_max = sum_r
d_min = abs(2 * max_r - sum_r)

l = math.hypot(x, y)

found = False
for r_last in r:
    if d_min <= r_last + l and d_max >= abs(l - r_last):
        found = True
        break

print("Yes" if found else "No")
0