結果

問題 No.1944 ∞
ユーザー Rainkunch
提出日時 2022-05-20 23:44:56
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 354 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 109,568 KB
最終ジャッジ日時 2024-09-20 10:11:41
合計ジャッジ時間 3,071 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 32 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import math


N,X,Y = map(float, input().split())
R = list(map(float, input().split()))
n = int(N)
Rn = [2*R[i] for i in range(n)]
Rn[0] = R[0]
leng = math.sqrt(X*X+Y*Y)
if leng > Rn[0]:
    if sum(Rn) >= leng:
        print('Yes')
    else:
        print('No')
else:
    if sum(Rn[1:]) >= Rn[0] - leng:
        print('Yes')
    else:
        print('No')
0