結果

問題 No.1944 ∞
ユーザー lloyz
提出日時 2022-05-21 00:37:05
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 162 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 31,668 KB
最終ジャッジ日時 2025-06-20 00:29:13
合計ジャッジ時間 2,465 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if n == 1:
    if x**2 + y**2 == R[0]**2:
        print("Yes")
    else:
        print("No")
    exit()

maxr = 2 * sum(R) - min(R)
if x**2 + y**2 <= maxr**2:
    print("Yes")
else:
    print("No")
0