結果

問題 No.1944 ∞
ユーザー chineristACchineristAC
提出日時 2022-05-20 21:33:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 483 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 81,648 KB
実行使用メモリ 104,088 KB
最終ジャッジ日時 2023-10-20 11:52:07
合計ジャッジ時間 3,300 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
56,092 KB
testcase_01 AC 46 ms
56,092 KB
testcase_02 AC 46 ms
56,092 KB
testcase_03 AC 45 ms
56,092 KB
testcase_04 AC 46 ms
56,092 KB
testcase_05 AC 45 ms
56,092 KB
testcase_06 AC 45 ms
56,092 KB
testcase_07 AC 48 ms
56,092 KB
testcase_08 AC 46 ms
56,092 KB
testcase_09 AC 46 ms
56,092 KB
testcase_10 AC 45 ms
56,092 KB
testcase_11 AC 44 ms
56,092 KB
testcase_12 AC 44 ms
56,092 KB
testcase_13 AC 47 ms
56,092 KB
testcase_14 AC 45 ms
56,092 KB
testcase_15 AC 100 ms
99,548 KB
testcase_16 AC 51 ms
66,600 KB
testcase_17 AC 50 ms
64,552 KB
testcase_18 AC 51 ms
64,552 KB
testcase_19 AC 50 ms
64,552 KB
testcase_20 AC 51 ms
66,600 KB
testcase_21 AC 51 ms
64,552 KB
testcase_22 AC 52 ms
64,552 KB
testcase_23 AC 51 ms
64,552 KB
testcase_24 AC 52 ms
64,552 KB
testcase_25 AC 52 ms
66,600 KB
testcase_26 AC 53 ms
66,600 KB
testcase_27 AC 54 ms
66,600 KB
testcase_28 AC 52 ms
64,552 KB
testcase_29 AC 51 ms
64,552 KB
testcase_30 AC 53 ms
66,600 KB
testcase_31 AC 52 ms
64,552 KB
testcase_32 AC 56 ms
64,552 KB
testcase_33 AC 91 ms
104,088 KB
testcase_34 AC 90 ms
104,088 KB
testcase_35 AC 90 ms
104,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict
import heapq
from itertools import permutations
from math import gcd

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

N,X,Y = mi()
R = li()
R.sort()

if N==1:
    if R[0]**2==X**2+Y**2:
        print("Yes")
    else:
        print("No")
    exit()

M = R[0] + sum(2*R[i] for i in range(1,N))
if X**2 + Y**2 <= M**2:
    print("Yes")
else:
    print("No")
0