結果

問題 No.1944 ∞
ユーザー neko0774neko0774
提出日時 2022-05-20 21:49:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 12,036 KB
実行使用メモリ 31,852 KB
最終ジャッジ日時 2023-10-20 12:21:49
合計ジャッジ時間 2,879 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,204 KB
testcase_01 AC 32 ms
10,204 KB
testcase_02 AC 31 ms
10,204 KB
testcase_03 AC 31 ms
10,140 KB
testcase_04 AC 32 ms
10,204 KB
testcase_05 AC 31 ms
10,108 KB
testcase_06 AC 31 ms
10,204 KB
testcase_07 AC 32 ms
10,204 KB
testcase_08 AC 32 ms
10,204 KB
testcase_09 AC 31 ms
10,204 KB
testcase_10 AC 32 ms
10,204 KB
testcase_11 AC 31 ms
10,204 KB
testcase_12 AC 32 ms
10,108 KB
testcase_13 AC 31 ms
10,140 KB
testcase_14 AC 31 ms
10,140 KB
testcase_15 AC 101 ms
31,852 KB
testcase_16 AC 36 ms
11,600 KB
testcase_17 AC 34 ms
10,996 KB
testcase_18 AC 35 ms
11,148 KB
testcase_19 AC 32 ms
10,560 KB
testcase_20 AC 35 ms
11,188 KB
testcase_21 AC 35 ms
11,172 KB
testcase_22 AC 33 ms
10,840 KB
testcase_23 AC 31 ms
10,452 KB
testcase_24 AC 32 ms
10,632 KB
testcase_25 AC 35 ms
11,380 KB
testcase_26 AC 35 ms
11,420 KB
testcase_27 AC 36 ms
11,348 KB
testcase_28 AC 34 ms
10,936 KB
testcase_29 AC 32 ms
10,420 KB
testcase_30 AC 35 ms
11,344 KB
testcase_31 AC 34 ms
10,884 KB
testcase_32 AC 34 ms
11,156 KB
testcase_33 AC 76 ms
13,288 KB
testcase_34 AC 76 ms
13,288 KB
testcase_35 AC 75 ms
13,288 KB
権限があれば一括ダウンロードができます

ソースコード

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-min(R)>=dis: print("Yes")
    else: print("No")
main()
0