結果

問題 No.1944 ∞
ユーザー MasKoaTSMasKoaTS
提出日時 2022-05-20 22:37:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 864 bytes
コンパイル時間 1,657 ms
コンパイル使用メモリ 81,568 KB
実行使用メモリ 118,924 KB
最終ジャッジ日時 2023-10-20 13:23:08
合計ジャッジ時間 7,788 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
85,788 KB
testcase_01 AC 130 ms
85,784 KB
testcase_02 AC 129 ms
85,788 KB
testcase_03 AC 128 ms
85,792 KB
testcase_04 AC 128 ms
85,792 KB
testcase_05 AC 129 ms
85,788 KB
testcase_06 AC 128 ms
85,792 KB
testcase_07 AC 129 ms
85,784 KB
testcase_08 AC 129 ms
85,792 KB
testcase_09 AC 127 ms
85,788 KB
testcase_10 AC 127 ms
85,792 KB
testcase_11 AC 127 ms
85,788 KB
testcase_12 AC 128 ms
85,788 KB
testcase_13 AC 128 ms
85,784 KB
testcase_14 AC 129 ms
85,788 KB
testcase_15 AC 176 ms
118,924 KB
testcase_16 AC 140 ms
88,528 KB
testcase_17 AC 139 ms
88,176 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 143 ms
88,396 KB
testcase_21 WA -
testcase_22 AC 131 ms
86,260 KB
testcase_23 AC 132 ms
86,268 KB
testcase_24 AC 135 ms
86,264 KB
testcase_25 AC 139 ms
88,436 KB
testcase_26 AC 139 ms
88,428 KB
testcase_27 AC 141 ms
88,404 KB
testcase_28 AC 133 ms
86,268 KB
testcase_29 AC 131 ms
86,264 KB
testcase_30 AC 140 ms
88,416 KB
testcase_31 AC 134 ms
86,264 KB
testcase_32 AC 142 ms
88,380 KB
testcase_33 AC 170 ms
116,832 KB
testcase_34 AC 171 ms
116,820 KB
testcase_35 AC 171 ms
116,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools as iter
import collections as coll
import heapq as hq
import bisect as bis
from decimal import Decimal as dec
from functools import cmp_to_key
import math
import sys
#import pypyjit
#pypyjit.set_param('max_unroll_recursion=-1')
sys.setrecursionlimit(10 ** 6)
inp = sys.stdin.readline
input = lambda : inp().rstrip()
getN = lambda : int(inp())
getNs = lambda : map(int, inp().split())
getList = lambda :list(map(int, inp().split()))
getStrs = lambda n : [input() for _ in [0] * n]
def yexit(): print("Yes"); exit(0)
def nexit(): print("No"); exit(0)
pi = 3.141592653589793
mod = 1000000007
MOD = 998244353
INF = 4611686018427387903
dx = [1, 0, -1, 0];	dy = [0, 1, 0, -1]


"""
Main Code
"""

n, x, y = getNs()
r = getList()

d = x ** 2 + y ** 2
s = (r[0] + sum(r[1:]) * 2) ** 2
if(n == 1 and min(r) ** 2 > d):
	nexit()
if(s >= d):
	yexit()
nexit()
0