結果

問題 No.1944 ∞
ユーザー SidewaysOwl
提出日時 2022-05-21 17:52:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 563 ms
コンパイル使用メモリ 82,244 KB
実行使用メモリ 103,716 KB
最終ジャッジ日時 2025-06-20 00:35:21
合計ジャッジ時間 3,441 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

n,x,y = map(int,input().split())
r = list(map(int,input().split()))
r.sort()
rr = r[0]
for i in range(1,n):
    rr += r[i]*2
if n == 1:
    if x **2 + y ** 2 == rr**2:
        print("Yes")
    else:
        print("No")
elif x**2 + y ** 2 <= rr ** 2:
    print("Yes")
else:
    print("No")
0