結果

問題 No.1944 ∞
ユーザー lloyzlloyz
提出日時 2022-05-20 22:04:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 264 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 11,800 KB
実行使用メモリ 34,416 KB
最終ジャッジ日時 2023-10-20 12:44:05
合計ジャッジ時間 2,938 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,080 KB
testcase_01 AC 28 ms
10,080 KB
testcase_02 AC 29 ms
10,080 KB
testcase_03 AC 28 ms
10,080 KB
testcase_04 AC 28 ms
10,080 KB
testcase_05 AC 29 ms
10,080 KB
testcase_06 AC 28 ms
10,080 KB
testcase_07 AC 27 ms
10,080 KB
testcase_08 AC 29 ms
10,080 KB
testcase_09 AC 28 ms
10,080 KB
testcase_10 AC 28 ms
10,080 KB
testcase_11 AC 28 ms
10,080 KB
testcase_12 AC 28 ms
10,080 KB
testcase_13 AC 28 ms
10,080 KB
testcase_14 WA -
testcase_15 AC 158 ms
34,416 KB
testcase_16 AC 37 ms
11,532 KB
testcase_17 AC 32 ms
10,860 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 34 ms
11,116 KB
testcase_21 WA -
testcase_22 AC 33 ms
10,712 KB
testcase_23 AC 28 ms
10,344 KB
testcase_24 AC 31 ms
10,520 KB
testcase_25 AC 35 ms
11,256 KB
testcase_26 AC 35 ms
11,396 KB
testcase_27 AC 34 ms
11,240 KB
testcase_28 AC 31 ms
10,808 KB
testcase_29 AC 29 ms
10,292 KB
testcase_30 AC 33 ms
11,360 KB
testcase_31 AC 31 ms
10,864 KB
testcase_32 AC 33 ms
11,032 KB
testcase_33 AC 123 ms
14,036 KB
testcase_34 AC 122 ms
14,036 KB
testcase_35 AC 123 ms
14,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x, y = map(int, input().split())
R = list(map(int, input().split()))

minr, maxr = R[0], R[0]
for i in range(1, n):
    minr -= 2 * R[i]
    maxr += 2 * R[i]
if minr <= 0:
    minr = 0
if minr**2 <= x**2 + y**2 <= maxr**2:
    print("Yes")
else:
    print("No")
0