結果

問題 No.1944 ∞
ユーザー neko0774neko0774
提出日時 2022-05-20 21:48:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 11,988 KB
実行使用メモリ 34,448 KB
最終ジャッジ日時 2023-10-20 12:17:56
合計ジャッジ時間 2,682 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,224 KB
testcase_01 WA -
testcase_02 AC 28 ms
10,224 KB
testcase_03 AC 28 ms
10,160 KB
testcase_04 AC 29 ms
10,224 KB
testcase_05 AC 28 ms
10,128 KB
testcase_06 AC 28 ms
10,224 KB
testcase_07 AC 28 ms
10,224 KB
testcase_08 AC 32 ms
10,224 KB
testcase_09 AC 28 ms
10,224 KB
testcase_10 AC 28 ms
10,224 KB
testcase_11 AC 29 ms
10,224 KB
testcase_12 AC 28 ms
10,128 KB
testcase_13 AC 29 ms
10,160 KB
testcase_14 AC 28 ms
10,160 KB
testcase_15 AC 92 ms
34,448 KB
testcase_16 AC 32 ms
11,680 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 30 ms
10,848 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 30 ms
10,956 KB
testcase_29 AC 29 ms
10,436 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 66 ms
14,096 KB
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

inf=10**18
dxy=[(0,1), (1,0), (-1, 0), (0, -1)]
mod=10**9+7
MOD=998244353
def main():
    N, X, Y = map(int, input().split())
    R =  [int(i) for i in input().split()]
    dis = (X**2+Y**2)**(1/2)
    if N==1:
        print("Yes" if R[0]==dis else "No")
        return
    if sum(R)*2-R[0]>=dis: print("Yes")
    else: print("N0")
main()
0