結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,868 KB
testcase_01 AC 17 ms
7,864 KB
testcase_02 AC 16 ms
7,804 KB
testcase_03 AC 15 ms
7,796 KB
testcase_04 AC 16 ms
7,828 KB
testcase_05 AC 16 ms
7,756 KB
testcase_06 AC 15 ms
7,812 KB
testcase_07 AC 16 ms
7,804 KB
testcase_08 AC 15 ms
7,840 KB
testcase_09 AC 16 ms
7,840 KB
testcase_10 AC 16 ms
7,832 KB
testcase_11 AC 15 ms
7,936 KB
testcase_12 AC 15 ms
7,752 KB
testcase_13 AC 15 ms
7,948 KB
testcase_14 WA -
testcase_15 AC 101 ms
31,336 KB
testcase_16 AC 21 ms
9,652 KB
testcase_17 AC 18 ms
8,976 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 20 ms
9,184 KB
testcase_21 WA -
testcase_22 AC 18 ms
8,768 KB
testcase_23 AC 16 ms
8,364 KB
testcase_24 AC 17 ms
8,536 KB
testcase_25 AC 21 ms
9,284 KB
testcase_26 AC 20 ms
9,464 KB
testcase_27 AC 20 ms
9,328 KB
testcase_28 AC 18 ms
8,768 KB
testcase_29 AC 17 ms
8,320 KB
testcase_30 AC 21 ms
9,572 KB
testcase_31 AC 18 ms
8,928 KB
testcase_32 AC 19 ms
9,096 KB
testcase_33 AC 72 ms
12,104 KB
testcase_34 AC 73 ms
12,056 KB
testcase_35 AC 71 ms
12,052 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