結果

問題 No.1944 ∞
ユーザー ripity
提出日時 2022-05-20 22:10:51
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 81,948 KB
実行使用メモリ 111,776 KB
最終ジャッジ日時 2024-09-20 08:21:34
合計ジャッジ時間 2,744 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x, y = map(int, input().split())
rorg = list(map(int, input().split()))+[0]
rasc = sorted(rorg)
rdes = sorted(rorg, reverse = True)
L = max(0, rasc[0]-2*sum(rasc[1:]))
R = rdes[0]+2*sum(rdes[1:])
if L*L <= x*x+y*y <= R*R: print('Yes')
else: print('No')
0