結果

問題 No.1944 ∞
ユーザー a aa a
提出日時 2022-10-01 17:30:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 268 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 31,184 KB
最終ジャッジ日時 2023-08-25 15:10:03
合計ジャッジ時間 2,568 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,864 KB
testcase_01 AC 16 ms
7,796 KB
testcase_02 AC 15 ms
7,808 KB
testcase_03 AC 16 ms
7,864 KB
testcase_04 AC 15 ms
7,792 KB
testcase_05 AC 15 ms
7,840 KB
testcase_06 AC 16 ms
7,868 KB
testcase_07 AC 15 ms
7,760 KB
testcase_08 AC 16 ms
7,864 KB
testcase_09 AC 16 ms
7,844 KB
testcase_10 AC 16 ms
7,952 KB
testcase_11 AC 15 ms
7,832 KB
testcase_12 AC 16 ms
7,936 KB
testcase_13 AC 15 ms
7,836 KB
testcase_14 WA -
testcase_15 AC 103 ms
31,184 KB
testcase_16 AC 22 ms
9,684 KB
testcase_17 AC 19 ms
8,976 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 20 ms
9,196 KB
testcase_21 WA -
testcase_22 AC 18 ms
8,828 KB
testcase_23 AC 16 ms
8,232 KB
testcase_24 AC 17 ms
8,628 KB
testcase_25 AC 20 ms
9,372 KB
testcase_26 AC 21 ms
9,476 KB
testcase_27 AC 20 ms
9,352 KB
testcase_28 AC 18 ms
8,852 KB
testcase_29 AC 16 ms
8,284 KB
testcase_30 AC 20 ms
9,436 KB
testcase_31 AC 18 ms
8,932 KB
testcase_32 AC 19 ms
9,040 KB
testcase_33 AC 72 ms
12,216 KB
testcase_34 AC 73 ms
12,152 KB
testcase_35 AC 72 ms
12,196 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