結果

問題 No.1944 ∞
ユーザー hir355
提出日時 2022-05-20 21:41:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 235 ms
コンパイル使用メモリ 82,284 KB
実行使用メモリ 104,664 KB
最終ジャッジ日時 2025-06-20 00:27:16
合計ジャッジ時間 3,018 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x, y = map(int, input().split())
r = list(map(int, input().split()))
r.sort()
s = sum(r[1:]) * 2
if r[0] ** 2 >= x ** 2 + y ** 2:
    if r[0] <= s or (r[0] - s) ** 2 <= x ** 2 + y ** 2:
        print('Yes')
    else:
        print('No')
else:
    if (s + r[0]) ** 2 >= x ** 2 + y ** 2:
        print('Yes')
    else:
        print('No')
0