結果

問題 No.1944 ∞
ユーザー abababab
提出日時 2022-05-20 21:49:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 11,820 KB
実行使用メモリ 31,916 KB
最終ジャッジ日時 2023-10-20 12:20:20
合計ジャッジ時間 2,635 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,152 KB
testcase_01 AC 30 ms
10,152 KB
testcase_02 AC 29 ms
10,152 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 29 ms
10,152 KB
testcase_06 AC 30 ms
10,152 KB
testcase_07 AC 30 ms
10,152 KB
testcase_08 AC 29 ms
10,152 KB
testcase_09 WA -
testcase_10 AC 30 ms
10,152 KB
testcase_11 AC 29 ms
10,152 KB
testcase_12 AC 29 ms
10,152 KB
testcase_13 AC 31 ms
10,152 KB
testcase_14 AC 29 ms
10,152 KB
testcase_15 AC 105 ms
31,916 KB
testcase_16 AC 35 ms
11,604 KB
testcase_17 WA -
testcase_18 AC 35 ms
11,112 KB
testcase_19 AC 31 ms
10,504 KB
testcase_20 WA -
testcase_21 AC 34 ms
11,132 KB
testcase_22 AC 32 ms
10,792 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 33 ms
10,888 KB
testcase_29 AC 30 ms
10,364 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 77 ms
13,352 KB
testcase_34 WA -
testcase_35 AC 77 ms
13,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, X, Y = map(int, input().split())
R = list(map(int, input().split()))

R.sort()
mx = R[0] + sum(r * 2 for r in R[1:])
mn = -mx

if mn <= X <= mx and mn <= Y <= mx:
    print('Yes')
else:
    print('No')
0