結果

問題 No.1944 ∞
ユーザー a aa a
提出日時 2022-10-01 17:24:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 269 bytes
コンパイル時間 589 ms
コンパイル使用メモリ 10,576 KB
実行使用メモリ 31,328 KB
最終ジャッジ日時 2023-08-25 15:05:52
合計ジャッジ時間 3,182 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 15 ms
7,804 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 16 ms
7,868 KB
testcase_05 AC 17 ms
7,992 KB
testcase_06 AC 15 ms
7,988 KB
testcase_07 AC 15 ms
7,788 KB
testcase_08 AC 15 ms
7,856 KB
testcase_09 WA -
testcase_10 AC 15 ms
7,836 KB
testcase_11 AC 15 ms
7,868 KB
testcase_12 AC 15 ms
7,800 KB
testcase_13 AC 16 ms
7,932 KB
testcase_14 AC 16 ms
7,928 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 19 ms
8,848 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 20 ms
9,112 KB
testcase_21 WA -
testcase_22 AC 18 ms
8,816 KB
testcase_23 AC 17 ms
8,252 KB
testcase_24 AC 17 ms
8,616 KB
testcase_25 AC 20 ms
9,248 KB
testcase_26 AC 20 ms
9,448 KB
testcase_27 AC 20 ms
9,260 KB
testcase_28 AC 19 ms
8,748 KB
testcase_29 AC 17 ms
8,376 KB
testcase_30 AC 20 ms
9,412 KB
testcase_31 AC 19 ms
8,912 KB
testcase_32 AC 20 ms
9,148 KB
testcase_33 AC 72 ms
12,080 KB
testcase_34 AC 71 ms
12,092 KB
testcase_35 AC 75 ms
12,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,x,y=list(map(int,input().split()))
r=list(map(int,input().split()))
sum=0
for i in r:
    sum+=i*2
sum-=r[0]
if (sum**2)>=(x**2)+(y**2):
    if sum-r[0]*2<=0 or (sum-r[0]*2)**2<=(x**2)+(y**2):
        print("Yes")
    else:
        print ("No")
else:
    print("No")
0