結果

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

ソースコード

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 = rasc[0]+2*sum(rasc[1:])
if L*L <= x*x+y*y <= R*R: print('Yes')
else: print('No')
0